diff options
author | Roman Tetelman <kevlarman@gmail.com> | 2009-10-03 11:40:53 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:15:13 +0000 |
commit | ea433462e65a861b7123942151e882954f55f052 (patch) | |
tree | 3c7c328c2e7582a1c784c94942fe38cc5ba2ab20 /src/cgame/cg_draw.c | |
parent | c9fbbbfdd7c97505ebea6b01e51029e98a08a863 (diff) |
credits to next stage are now ceil()ed to the nearest hundred
Diffstat (limited to 'src/cgame/cg_draw.c')
-rw-r--r-- | src/cgame/cg_draw.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cgame/cg_draw.c b/src/cgame/cg_draw.c index d03933ba..a6302afe 100644 --- a/src/cgame/cg_draw.c +++ b/src/cgame/cg_draw.c @@ -1491,6 +1491,9 @@ static void CG_DrawStageReport( rectDef_t *rect, float text_x, float text_y, else if( cg.snap->ps.stats[ STAT_PTEAM ] == PTE_HUMANS ) { int credits = cgs.humanNextStageThreshold - cgs.humanCredits; + //having credits to next stage constantly increasing feels wrong, so + //we round up to the nearest 100 + credits = (int) (ceil(credits / 100.0f) * 100); if( credits < 0 ) credits = 0; |