summaryrefslogtreecommitdiff
path: root/src/cgame/cg_draw.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2002-01-02 01:29:19 +0000
committerTim Angus <tim@ngus.net>2002-01-02 01:29:19 +0000
commit52c89557d3619e31891a76d8751444dd9990f12c (patch)
tree93363120efe62a817147c422f9323df4e56e9bfc /src/cgame/cg_draw.c
parente3270868dabe772ff15c612bdb660f9bfe281033 (diff)
Rudimentary staging code. Simplified building rules - they were over complex
Diffstat (limited to 'src/cgame/cg_draw.c')
-rw-r--r--src/cgame/cg_draw.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/cgame/cg_draw.c b/src/cgame/cg_draw.c
index e0c8d768..069ea844 100644
--- a/src/cgame/cg_draw.c
+++ b/src/cgame/cg_draw.c
@@ -528,9 +528,9 @@ static void CG_DrawStatusBar( void ) {
#define PWR_Y 20
if( ps->stats[ STAT_PTEAM ] == PTE_HUMANS )
{
- float total = cgs.hBuildPointsTotal;
- float allocated = total - cgs.hBuildPoints;
- float powered = total - cgs.hBuildPointsPowered;
+ float total = cgs.humanBuildPointsTotal;
+ float allocated = total - cgs.humanBuildPoints;
+ float powered = total - cgs.humanBuildPointsPowered;
int awidth = (int)( ( allocated / total ) * PWR_WIDTH );
int pwidth = (int)( ( powered / total ) * PWR_WIDTH );
@@ -566,8 +566,8 @@ static void CG_DrawStatusBar( void ) {
#define HV_Y 20
if( ps->stats[ STAT_PTEAM ] == PTE_ALIENS )
{
- float total = cgs.dBuildPointsTotal;
- float allocated = total - cgs.dBuildPoints;
+ float total = cgs.alienBuildPointsTotal;
+ float allocated = total - cgs.alienBuildPoints;
int awidth = (int)( ( allocated / total ) * HV_WIDTH );
vec4_t bcolor = { 0.5, 0.5, 0.5, 0.5 };
@@ -1015,9 +1015,9 @@ static float CG_DrawPoints( float y )
team = cg.snap->ps.stats[ STAT_PTEAM ];
if( team == PTE_ALIENS )
- buildpoints = cgs.dBuildPoints;
+ buildpoints = cgs.alienBuildPoints;
else if( team == PTE_HUMANS )
- buildpoints = cgs.hBuildPoints;
+ buildpoints = cgs.humanBuildPoints;
spectator = ( team == PTE_NONE );