From dbd8fb373a3ebf8db094322bb50f46802b0502cc Mon Sep 17 00:00:00 2001 From: Ben Millwood Date: Sat, 3 Oct 2009 11:46:12 +0000 Subject: * Round thresholds server-side to save bandwidth and prevent server command overflows * Downgrade weapon anim messages to a warning (because we're not really expecting any to exist) Merge bugs: * Fix human spawn menu * Protocol version 69 (oops!) --- src/cgame/cg_draw.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/cgame') diff --git a/src/cgame/cg_draw.c b/src/cgame/cg_draw.c index 8e42e4ca..5fcd832a 100644 --- a/src/cgame/cg_draw.c +++ b/src/cgame/cg_draw.c @@ -1491,9 +1491,7 @@ static void CG_DrawStageReport( rectDef_t *rect, float text_x, float text_y, else if( cg.snap->ps.stats[ STAT_TEAM ] == TEAM_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