summaryrefslogtreecommitdiff
path: root/src/cgame
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgame')
-rw-r--r--src/cgame/cg_draw.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/cgame/cg_draw.c b/src/cgame/cg_draw.c
index d9545b7..b4673c6 100644
--- a/src/cgame/cg_draw.c
+++ b/src/cgame/cg_draw.c
@@ -605,11 +605,19 @@ static void CG_DrawPlayerCreditsValue( rectDef_t *rect, vec4_t color, qboolean p
if( cg_drawFractionalEvos.integer
&& cg.predictedPlayerState.stats[ STAT_PTEAM ] == PTE_ALIENS )
+ {
CG_DrawPlayerEvos( rect, value );
- else if( padding )
- CG_DrawFieldPadded( rect->x, rect->y, 4, rect->w / 4, rect->h, value );
+ }
else
- CG_DrawField( rect->x, rect->y, 1, rect->w, rect->h, value );
+ {
+ if( cg.predictedPlayerState.stats[ STAT_PTEAM ] == PTE_ALIENS )
+ value /= EVO_TO_CREDS_RATE;
+
+ if( padding )
+ CG_DrawFieldPadded( rect->x, rect->y, 4, rect->w / 4, rect->h, value );
+ else
+ CG_DrawField( rect->x, rect->y, 1, rect->w, rect->h, value );
+ }
trap_R_SetColor( NULL );
}