diff options
Diffstat (limited to 'src/cgame')
-rw-r--r-- | src/cgame/cg_draw.c | 5 | ||||
-rw-r--r-- | src/cgame/cg_local.h | 6 | ||||
-rw-r--r-- | src/cgame/cg_servercmds.c | 11 |
3 files changed, 1 insertions, 21 deletions
diff --git a/src/cgame/cg_draw.c b/src/cgame/cg_draw.c index e30eed48..b12174f2 100644 --- a/src/cgame/cg_draw.c +++ b/src/cgame/cg_draw.c @@ -630,11 +630,8 @@ static void CG_DrawPlayerAmmoValue( rectDef_t *rect, vec4_t color ) case WP_ABUILD: case WP_ABUILD2: - value = cgs.alienBuildPoints; - break; - case WP_HBUILD: - value = cgs.humanBuildPoints; + value = cg.snap->ps.persistant[ PERS_BP ]; break; default: diff --git a/src/cgame/cg_local.h b/src/cgame/cg_local.h index 8f26df43..5518a329 100644 --- a/src/cgame/cg_local.h +++ b/src/cgame/cg_local.h @@ -1374,12 +1374,6 @@ typedef struct qboolean newHud; - int alienBuildPoints; - int alienBuildPointsTotal; - int humanBuildPoints; - int humanBuildPointsTotal; - int humanBuildPointsPowered; - int alienStage; int humanStage; int alienCredits; diff --git a/src/cgame/cg_servercmds.c b/src/cgame/cg_servercmds.c index ae3e179e..2d9b7038 100644 --- a/src/cgame/cg_servercmds.c +++ b/src/cgame/cg_servercmds.c @@ -160,12 +160,6 @@ Called on load to set the initial values from configure strings */ void CG_SetConfigValues( void ) { - sscanf( CG_ConfigString( CS_BUILDPOINTS ), - "%d %d %d %d", &cgs.alienBuildPoints, - &cgs.alienBuildPointsTotal, - &cgs.humanBuildPoints, - &cgs.humanBuildPointsTotal ); - sscanf( CG_ConfigString( CS_STAGES ), "%d %d %d %d %d %d", &cgs.alienStage, &cgs.humanStage, &cgs.alienCredits, &cgs.humanCredits, &cgs.alienNextStageThreshold, &cgs.humanNextStageThreshold ); @@ -279,11 +273,6 @@ static void CG_ConfigStringModified( void ) CG_ParseServerinfo( ); else if( num == CS_WARMUP ) CG_ParseWarmup( ); - else if( num == CS_BUILDPOINTS ) - sscanf( str, "%d %d %d %d", &cgs.alienBuildPoints, - &cgs.alienBuildPointsTotal, - &cgs.humanBuildPoints, - &cgs.humanBuildPointsTotal ); else if( num == CS_STAGES ) { stage_t oldAlienStage = cgs.alienStage; |