summaryrefslogtreecommitdiff
path: root/src/game/g_main.c
diff options
context:
space:
mode:
authorPetr Pudlak <petr.mvd@gmail.com>2014-09-20 20:14:17 +0200
committerPetr Pudlak <petr.mvd@gmail.com>2014-09-20 20:14:17 +0200
commit25ea3508f41b1ae7764c10516a7148149a0bc50a (patch)
tree8ff153899fef6ec303b2735d4150e347836446e4 /src/game/g_main.c
parentdc215ae76045cc7ee80db427a1da1eede472d376 (diff)
Account for build points in the queues
So that buildings don't die when there is enough BPs, but still stuck in the queue.
Diffstat (limited to 'src/game/g_main.c')
-rw-r--r--src/game/g_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c
index 2a8fb13..f5d8d8a 100644
--- a/src/game/g_main.c
+++ b/src/game/g_main.c
@@ -1377,8 +1377,8 @@ void G_CheckForNegativeBuildPoints( void )
return;
level.nextNegativeBPCheck += thinkduration;
- a_bps = G_GetBuildPoints( NULL, TEAM_ALIENS );
- h_bps = G_GetBuildPoints( NULL, TEAM_HUMANS );
+ a_bps = G_GetBuildPoints( NULL, TEAM_ALIENS ) + level.alienBuildPointQueue;
+ h_bps = G_GetBuildPoints( NULL, TEAM_HUMANS ) + level.humanBuildPointQueue;
if( ( a_bps >= 0 ) && ( h_bps >= 0 ) )
return;