From ebb0b9355c4431f7ad148a8be01b072dd8c6378e Mon Sep 17 00:00:00 2001 From: Christopher Schwarz Date: Sat, 6 Aug 2011 21:48:11 +0000 Subject: * (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) --- src/game/g_buildable.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/game/g_buildable.c') 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; -- cgit