diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2020-04-06 15:34:12 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2020-04-06 22:20:59 +0200 |
commit | 59d0e86d4f539c201cfb4d2827593fb8d80b5c7b (patch) | |
tree | 42bbbee1acc63149fd6b1c7effa739d70a146890 /src | |
parent | a45a033cebd101eee142f15cfde2e643b7404b01 (diff) |
Fix the old evo display
Diffstat (limited to 'src')
-rw-r--r-- | src/cgame/cg_draw.c | 14 |
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 ); } |