From 5edcce3e19082734d026693e0134c819eb34c99f Mon Sep 17 00:00:00 2001 From: Christopher Schwarz Date: Wed, 28 Oct 2009 03:46:27 +0000 Subject: * Fix a bug that allowed building multiple reac/om (Roman Tetelman) --- src/game/g_buildable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 ) { -- cgit