diff options
author | Ben Millwood <thebenmachine@gmail.com> | 2009-10-03 12:35:25 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:16:05 +0000 |
commit | dcfcbd3bb4a94ff8f374570916c86acadeb7e5dd (patch) | |
tree | ee9d8cd00c37b681e345ce57de8bb4b6d5bb2687 /src/game | |
parent | ed3a99c42a9173e456620a63a91acb635d3ed94c (diff) |
* (bug 4003) Non-buildable entities can be counted as spawns (Rezyn)
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/g_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c index a9806f2d..8146f03f 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -1049,13 +1049,13 @@ void G_CountSpawns( void ) for( i = 1, ent = g_entities + i ; i < level.num_entities ; i++, ent++ ) { - if( !ent->inuse ) + if( !ent->inuse || ent->s.eType != ET_BUILDABLE || ent->health <= 0 ) continue; - if( ent->s.modelindex == BA_A_SPAWN && ent->health > 0 ) + if( ent->s.modelindex == BA_A_SPAWN ) level.numAlienSpawns++; - if( ent->s.modelindex == BA_H_SPAWN && ent->health > 0 ) + if( ent->s.modelindex == BA_H_SPAWN ) level.numHumanSpawns++; } } |