diff options
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/g_main.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c index d9dcd66..68043d8 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -1361,13 +1361,14 @@ 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->spawned && 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++; } |