summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorenneract <trem.redman@gmail.com>2014-12-06 23:34:48 +0100
committerenneract <trem.redman@gmail.com>2014-12-06 23:34:48 +0100
commit58903527dbf5fc7d8035ac2349174fe5f58ba2ac (patch)
tree34548ca5936b4157b9e608f71f6e83459de9d66a /src/game
parentfd19ccb037e349286e3b72a1277c58079056fcc2 (diff)
Add total BP counters to HUD.
Diffstat (limited to 'src/game')
-rw-r--r--src/game/bg_public.h1
-rw-r--r--src/game/g_main.c5
2 files changed, 6 insertions, 0 deletions
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;