diff options
author | Mikko Tiusanen <ams@daug.net> | 2014-06-12 14:52:40 +0300 |
---|---|---|
committer | Mikko Tiusanen <ams@daug.net> | 2014-06-12 14:52:40 +0300 |
commit | 6c8c4388491928043fb6e2175616656db12fa754 (patch) | |
tree | 92707864b0c30b9b649f42d891af1b4717587594 /src/game/g_main.c | |
parent | 30c7eca2541d5642dd4a97e8e481686f38a43ea8 (diff) |
No more automatic team balance when humans don't have powered armouries left.
Diffstat (limited to 'src/game/g_main.c')
-rw-r--r-- | src/game/g_main.c | 4 |
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++; } } |