diff options
author | Ben Millwood <thebenmachine@gmail.com> | 2009-10-03 11:46:34 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:15:19 +0000 |
commit | 52e71716f0c0bc119738c6a9951e0e85638bff04 (patch) | |
tree | 21a05c8771a547f43916b9d57078106111286bb7 /src/game | |
parent | b9bcedd9114777f341576e867aa270d3a984971a (diff) |
Fix 0 credits to next stage in s3
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/g_main.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c index 972ad1ef..0aa5d017 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -1198,8 +1198,11 @@ void G_CalculateBuildPoints( void ) humanNextStageThreshold = -1; // save a lot of bandwidth by rounding thresholds up to the nearest 100 - alienNextStageThreshold = ceil( (float)alienNextStageThreshold / 100 ) * 100; - humanNextStageThreshold = ceil( (float)humanNextStageThreshold / 100 ) * 100; + if( alienNextStageThreshold > 0 ) + alienNextStageThreshold = ceil( (float)alienNextStageThreshold / 100 ) * 100; + + if( humanNextStageThreshold > 0 ) + humanNextStageThreshold = ceil( (float)humanNextStageThreshold / 100 ) * 100; trap_SetConfigstring( CS_STAGES, va( "%d %d %d %d %d %d", g_alienStage.integer, g_humanStage.integer, |