summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2017-04-15 00:09:23 +0200
committer/dev/humancontroller <devhc@example.com>2017-04-15 17:24:19 +0200
commit743e3bb853419bfcc5267449cbc032774a055d2b (patch)
tree5648c03ea24990f4d164704abaf8b9536341f03c
parenta3db40cc7ae0894e5d410e22b1dd97735f88a39c (diff)
fix repeaters giving power after the reactor loses its health but hasn't blown up yet
-rw-r--r--src/game/g_buildable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c
index 983e259..446311f 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -1804,7 +1804,7 @@ void HRepeater_Think( gentity_t *self )
if( ent->s.eType != ET_BUILDABLE )
continue;
- if( ent->s.modelindex == BA_H_REACTOR && ent->spawned )
+ if( ent->s.modelindex == BA_H_REACTOR && ent->spawned && ent->powered )
reactor = qtrue;
}
}