mirror of
https://github.com/TTimo/doom3.gpl.git
synced 2026-03-19 16:39:24 +01:00
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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user