diff options
author | Petr Pudlak <petr.mvd@gmail.com> | 2014-09-20 20:14:17 +0200 |
---|---|---|
committer | Petr Pudlak <petr.mvd@gmail.com> | 2014-09-20 20:14:17 +0200 |
commit | 25ea3508f41b1ae7764c10516a7148149a0bc50a (patch) | |
tree | 8ff153899fef6ec303b2735d4150e347836446e4 /src/game/g_main.c | |
parent | dc215ae76045cc7ee80db427a1da1eede472d376 (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.c | 4 |
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; |