diff options
author | Tim Angus <tim@ngus.net> | 2004-05-29 21:50:23 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2004-05-29 21:50:23 +0000 |
commit | b26e835db568d6d8bbf524ac2eaa415385911717 (patch) | |
tree | e9297301f9ba2fb0a8c4d0e841c9cd6ca247005c /src/game | |
parent | 2991a700937b44831092e8db2f01442d217876e5 (diff) |
* Added code to report number of spawns remaining when spawning
* Tweaked some font values
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 ) ); } |