diff options
author | Christopher Schwarz <lakitu7@gmail.com> | 2009-10-28 03:46:27 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:17:08 +0000 |
commit | 5edcce3e19082734d026693e0134c819eb34c99f (patch) | |
tree | 5a9491ad94dcf4264187785e2fd101bb97855672 | |
parent | 4f35f4be9d2bb86babe1570b8610279d04466fda (diff) |
* Fix a bug that allowed building multiple reac/om (Roman Tetelman)
-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 ) { |