Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Commit

Permalink
Fix a test in idAI::Event_CanBecomeSolid
Browse files Browse the repository at this point in the history
It's probably a small bug, idBarrel	and idExplodingBarrel can by tested
event if spawnClearMoveables is false.

Signed-off-by: XoD <xoddark@gmail.com>
  • Loading branch information
XoD committed Dec 28, 2011
1 parent 6101cec commit a725daf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neo/d3xp/ai/AI_events.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit a725daf

Please sign in to comment.