From a725daf17e598400e95a1558b4081d24ec8cec5b Mon Sep 17 00:00:00 2001 From: XoD Date: Wed, 21 Dec 2011 21:48:50 +0100 Subject: [PATCH] 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 --- neo/d3xp/ai/AI_events.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neo/d3xp/ai/AI_events.cpp b/neo/d3xp/ai/AI_events.cpp index 394561a..02ac1d6 100644 --- a/neo/d3xp/ai/AI_events.cpp +++ b/neo/d3xp/ai/AI_events.cpp @@ -876,7 +876,7 @@ void idAI::Event_CanBecomeSolid( void ) { } #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; push = hit->GetPhysics()->GetOrigin() - GetPhysics()->GetOrigin(); push.z = 30.f;