summaryrefslogtreecommitdiff
path: root/src/game/g_buildable.c
diff options
context:
space:
mode:
authorChristopher Schwarz <lakitu7@gmail.com>2011-08-06 21:48:11 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:18:12 +0000
commitebb0b9355c4431f7ad148a8be01b072dd8c6378e (patch)
treecb635ad9ef8603673d559ac0d9f13994612e7116 /src/game/g_buildable.c
parent786fa4540110bd35471cdd69060b7390ab7dadf1 (diff)
* (bug 5001) Fix repeater BP queueing, build them with full BP available (/dev/humancontroller)
- Set the queue time short to encourage builders to wait for the queue rather than replace the repeater (Norfenstein)
Diffstat (limited to 'src/game/g_buildable.c')
-rw-r--r--src/game/g_buildable.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c
index 0ff698b2..7a27e806 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -240,7 +240,7 @@ qboolean G_FindPower( gentity_t *self, qboolean searchUnspawned )
}
}
- if( self->usesBuildPointZone && level.buildPointZones[ ent->buildPointZone ].active )
+ if( ent->usesBuildPointZone && level.buildPointZones[ ent->buildPointZone ].active )
buildPoints -= level.buildPointZones[ ent->buildPointZone ].queuedBuildPoints;
buildPoints -= BG_Buildable( self->s.modelindex )->buildPoints;
@@ -1814,8 +1814,9 @@ void HRepeater_Think( gentity_t *self )
if( !zone->active )
{
- // Initialise the BP queue with all BP queued
- zone->queuedBuildPoints = zone->totalBuildPoints = g_humanRepeaterBuildPoints.integer;
+ // Initialise the BP queue with no BP queued
+ zone->queuedBuildPoints = 0;
+ zone->totalBuildPoints = g_humanRepeaterBuildPoints.integer;
zone->nextQueueTime = level.time;
zone->active = qtrue;