From 58903527dbf5fc7d8035ac2349174fe5f58ba2ac Mon Sep 17 00:00:00 2001 From: enneract Date: Sat, 6 Dec 2014 23:34:48 +0100 Subject: Add total BP counters to HUD. --- src/game/bg_public.h | 1 + src/game/g_main.c | 5 +++++ 2 files changed, 6 insertions(+) (limited to 'src/game') diff --git a/src/game/bg_public.h b/src/game/bg_public.h index b7df340..ad1c917 100644 --- a/src/game/bg_public.h +++ b/src/game/bg_public.h @@ -77,6 +77,7 @@ enum CS_CLIENTS_READY, CS_ALIEN_STAGES, CS_HUMAN_STAGES, + CS_BUILD_POOLS, CS_MODELS, CS_SOUNDS = CS_MODELS + MAX_MODELS, CS_SHADERS = CS_SOUNDS + MAX_SOUNDS, diff --git a/src/game/g_main.c b/src/game/g_main.c index 7011827..f4ab0b0 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -1395,6 +1395,11 @@ void G_CalculateBuildPoints( void ) level.humanBuildPoints += level.humanExtraBuildPoints; level.alienBuildPoints += level.alienExtraBuildPoints; } + + trap_SetConfigstring( CS_BUILD_POOLS, va( "a\\%d\\h\\%d", + g_alienBuildPoints.integer + level.alienExtraBuildPoints, + g_humanBuildPoints.integer + level.humanExtraBuildPoints ) ); + //zero bp not allowed // if( level.humanBuildPoints < 0 ) // level.humanBuildPoints = 0; -- cgit