summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_buildable.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c
index d8612d6..722bbb5 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -1549,6 +1549,9 @@ void ABooster_Think( gentity_t *self )
self->nextthink = level.time + BG_FindNextThinkForBuildable( self->s.modelindex );
+ if( !self->spawned || !self->powered || self->health <= 0 )
+ return;
+
VectorSet( range, REGEN_BOOST_RANGE, REGEN_BOOST_RANGE,
REGEN_BOOST_RANGE );
VectorAdd( self->r.currentOrigin, range, maxs );