Fix a test in idAI::Event_CanBecomeSolid

It's probably a small bug, idBarrel	and idExplodingBarrel can by tested
event if spawnClearMoveables is false.

Signed-off-by: XoD <xoddark@gmail.com>
This commit is contained in:
XoD
2011-12-21 21:48:50 +01:00
parent 6101cec5be
commit a725daf17e

View File

@@ -876,7 +876,7 @@ void idAI::Event_CanBecomeSolid( void ) {
} }
#ifdef _D3XP #ifdef _D3XP
if ( spawnClearMoveables && hit->IsType( idMoveable::Type ) || hit->IsType( idBarrel::Type ) || hit->IsType( idExplodingBarrel::Type ) ) { if ( spawnClearMoveables && ( hit->IsType( idMoveable::Type ) || hit->IsType( idBarrel::Type ) || hit->IsType( idExplodingBarrel::Type ) ) ) {
idVec3 push; idVec3 push;
push = hit->GetPhysics()->GetOrigin() - GetPhysics()->GetOrigin(); push = hit->GetPhysics()->GetOrigin() - GetPhysics()->GetOrigin();
push.z = 30.f; push.z = 30.f;