diff options
author | Roman Tetelman <kevlarman@gmail.com> | 2009-10-03 12:43:36 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:16:11 +0000 |
commit | ee7565f9c0a4ba27251156c2e2e2c3fee554064b (patch) | |
tree | bf7c1aab6d5796d74f3fc15f1f45521b4f632a80 /src/game | |
parent | c020834a050979dc44d5f2bcbafc275ccc8a4390 (diff) |
* fix previous commit to actually work (integer math...whoops)
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/g_main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c index bf7248b8..44ffd098 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -1070,16 +1070,16 @@ void G_CalculateBuildPoints( void ) level.alienNextQueueTime < level.time ) { level.alienBuildPointQueue--; - level.alienNextQueueTime += g_alienBuildQueueTime.integer * - ( 1 - level.alienBuildPointQueue / level.alienBuildPoints ); + level.alienNextQueueTime += (int)( g_alienBuildQueueTime.integer * + ( 1.0f - ( (float)level.alienBuildPointQueue / level.alienBuildPoints ) ) ); } while( level.humanBuildPointQueue > 0 && level.humanNextQueueTime < level.time ) { level.humanBuildPointQueue--; - level.humanNextQueueTime += g_humanBuildQueueTime.integer * - ( 1 - level.humanBuildPointQueue / level.humanBuildPoints ); + level.humanNextQueueTime += (int)( g_humanBuildQueueTime.integer * + ( 1.0f - ( (float)level.humanBuildPointQueue / level.humanBuildPoints ) ) ); } // Sudden Death checks |