diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/game/g_buildable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index fb2047f5..02ce3de1 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -2963,7 +2963,7 @@ static gentity_t *G_FindBuildable( buildable_t buildable ) if( ent->s.eType != ET_BUILDABLE ) continue; - if( ent->s.modelindex == buildable ) + if( ent->s.modelindex == buildable && !(ent->s.eFlags & EF_DEAD) ) return ent; } @@ -3544,7 +3544,7 @@ itemBuildError_t G_CanBuild( gentity_t *ent, buildable_t buildable, int distance if( BG_Buildable( buildable )->uniqueTest ) { tempent = G_FindBuildable( buildable ); - if( tempent && !tempent->deconstruct && !( tempent->s.eFlags & EF_DEAD ) ) + if( tempent && !tempent->deconstruct ) { switch( buildable ) { |