From dcfcbd3bb4a94ff8f374570916c86acadeb7e5dd Mon Sep 17 00:00:00 2001 From: Ben Millwood Date: Sat, 3 Oct 2009 12:35:25 +0000 Subject: * (bug 4003) Non-buildable entities can be counted as spawns (Rezyn) --- src/game/g_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/game') 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++; } } -- cgit