From 25ea3508f41b1ae7764c10516a7148149a0bc50a Mon Sep 17 00:00:00 2001 From: Petr Pudlak Date: Sat, 20 Sep 2014 20:14:17 +0200 Subject: Account for build points in the queues So that buildings don't die when there is enough BPs, but still stuck in the queue. --- src/game/g_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit