summaryrefslogtreecommitdiff
path: root/src/game/g_buildable.c
diff options
context:
space:
mode:
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;