summaryrefslogtreecommitdiff
path: root/src/game/g_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_main.c')
-rw-r--r--src/game/g_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c
index bd3fef0..977ab1e 100644
--- a/src/game/g_main.c
+++ b/src/game/g_main.c
@@ -1093,6 +1093,7 @@ void G_CountSpawns( void )
level.numAlienSpawns = 0;
level.numHumanSpawns = 0;
+ level.numHumanArmouries = 0;
for( i = 1, ent = g_entities + i ; i < level.num_entities ; i++, ent++ )
{
if( !ent->inuse || ent->s.eType != ET_BUILDABLE || ent->health <= 0 )
@@ -1103,6 +1104,9 @@ void G_CountSpawns( void )
if( ent->s.modelindex == BA_H_SPAWN )
level.numHumanSpawns++;
+
+ if( ent->powered && ent->s.modelindex == BA_H_ARMOURY )
+ level.numHumanArmouries++;
}
}