summaryrefslogtreecommitdiff
path: root/src/cgame/cg_draw.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgame/cg_draw.c')
-rw-r--r--src/cgame/cg_draw.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cgame/cg_draw.c b/src/cgame/cg_draw.c
index 675e791d..188c1e44 100644
--- a/src/cgame/cg_draw.c
+++ b/src/cgame/cg_draw.c
@@ -861,9 +861,13 @@ static void CG_DrawPlayerAmmoValue( rectDef_t *rect, vec4_t color )
{
case WP_ABUILD:
case WP_ABUILD2:
+ //percentage of BP remaining
+ value = (int)( ( (float)cgs.alienBuildPoints / (float)cgs.alienBuildPointsTotal ) * 100.0f );
+ break;
+
case WP_HBUILD:
case WP_HBUILD2:
- //percentage of power remaining
+ //percentage of BP remaining
value = (int)( ( (float)cgs.humanBuildPoints / (float)cgs.humanBuildPointsTotal ) * 100.0f );
break;