From ea433462e65a861b7123942151e882954f55f052 Mon Sep 17 00:00:00 2001 From: Roman Tetelman Date: Sat, 3 Oct 2009 11:40:53 +0000 Subject: credits to next stage are now ceil()ed to the nearest hundred --- src/cgame/cg_draw.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/cgame/cg_draw.c') 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; -- cgit