summaryrefslogtreecommitdiff
path: root/src/cgame
diff options
context:
space:
mode:
authorBen Millwood <thebenmachine@gmail.com>2009-10-03 12:51:49 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:16:17 +0000
commitfd69c6cdcccfee850fb769ce34883ee7813ab569 (patch)
tree4bc07bb96ee52beee3b3fdeb9176455ca8082454 /src/cgame
parente8395e42e848dc46f7b0b923fc3d2e9e492faa16 (diff)
Dead buildables are ignored on radar
Diffstat (limited to 'src/cgame')
-rw-r--r--src/cgame/cg_scanner.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cgame/cg_scanner.c b/src/cgame/cg_scanner.c
index e0498b43..e330880d 100644
--- a/src/cgame/cg_scanner.c
+++ b/src/cgame/cg_scanner.c
@@ -58,7 +58,8 @@ void CG_UpdateEntityPositions( void )
{
cent = &cg_entities[ cg.snap->entities[ i ].number ];
- if( cent->currentState.eType == ET_BUILDABLE )
+ if( cent->currentState.eType == ET_BUILDABLE &&
+ !( cent->currentState.eFlags & EF_DEAD ) )
{
// add to list of item positions (for creep)
if( cent->currentState.modelindex2 == TEAM_ALIENS )