diff options
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/bg_public.h | 1 | ||||
-rw-r--r-- | src/game/g_main.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/game/bg_public.h b/src/game/bg_public.h index 1021cdf6..17333648 100644 --- a/src/game/bg_public.h +++ b/src/game/bg_public.h @@ -67,6 +67,7 @@ //TA: extra stuff: #define CS_BUILDPOINTS 28 #define CS_STAGES 29 +#define CS_SPAWNS 30 #define CS_MODELS 33 #define CS_SOUNDS (CS_MODELS+MAX_MODELS) diff --git a/src/game/g_main.c b/src/game/g_main.c index 4b2aa39d..2a54b521 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -916,6 +916,10 @@ void G_CountSpawns( void ) if( ent->s.modelindex == BA_H_SPAWN && ent->health > 0 ) level.numHumanSpawns++; } + + //let the client know how many spawns there are + trap_SetConfigstring( CS_SPAWNS, va( "%d %d", + level.numAlienSpawns, level.numHumanSpawns ) ); } |