From 743e3bb853419bfcc5267449cbc032774a055d2b Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Sat, 15 Apr 2017 00:09:23 +0200 Subject: fix repeaters giving power after the reactor loses its health but hasn't blown up yet --- src/game/g_buildable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game') 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; } } -- cgit