summaryrefslogtreecommitdiff
path: root/src/game/g_main.c
diff options
context:
space:
mode:
authorRoman Tetelman <kevlarman@gmail.com>2009-10-03 12:43:24 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:16:11 +0000
commitc020834a050979dc44d5f2bcbafc275ccc8a4390 (patch)
tree371a7657ec8873e6b328afb7fcf69588eb01b22e /src/game/g_main.c
parent6527311b4063ae9d23a1319c5b80cb05d3c4c74c (diff)
* make build point return time shorter when more build points are missing
Diffstat (limited to 'src/game/g_main.c')
-rw-r--r--src/game/g_main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c
index 3c36382c..bf7248b8 100644
--- a/src/game/g_main.c
+++ b/src/game/g_main.c
@@ -1070,14 +1070,16 @@ void G_CalculateBuildPoints( void )
level.alienNextQueueTime < level.time )
{
level.alienBuildPointQueue--;
- level.alienNextQueueTime += g_alienBuildQueueTime.integer;
+ level.alienNextQueueTime += g_alienBuildQueueTime.integer *
+ ( 1 - level.alienBuildPointQueue / level.alienBuildPoints );
}
while( level.humanBuildPointQueue > 0 &&
level.humanNextQueueTime < level.time )
{
level.humanBuildPointQueue--;
- level.humanNextQueueTime += g_alienBuildQueueTime.integer;
+ level.humanNextQueueTime += g_humanBuildQueueTime.integer *
+ ( 1 - level.humanBuildPointQueue / level.humanBuildPoints );
}
// Sudden Death checks