summaryrefslogtreecommitdiff
path: root/src/cgame
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2003-01-27 02:35:06 +0000
committerTim Angus <tim@ngus.net>2003-01-27 02:35:06 +0000
commit03986b8845ba59376ff6b315be0ebf47ee7244d8 (patch)
treed231879bdd2077a026fa47d011cbab8cecc848bf /src/cgame
parentf3e7e55ef5b6e2502db82d2f9f658bdb904dca85 (diff)
* Fixed a stupid HUD bug
* Changes to viewheights, BBOXes and FOVs * Added some code to nudge the spawn origin of an infest spawning alien * Infesting view now traces to find position * Some changes to weapon ranges
Diffstat (limited to 'src/cgame')
-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;