diff options
Diffstat (limited to 'src/game/g_buildable.c')
-rw-r--r-- | src/game/g_buildable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index eb251ca0..ee3a02a2 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -1937,7 +1937,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->health > 0 ) reactor = qtrue; } } @@ -3422,7 +3422,7 @@ itemBuildError_t G_CanBuild( gentity_t *ent, buildable_t buildable, int distance //check that there is a parent reactor when building a repeater if( buildable == BA_H_REPEATER ) { - tempent = G_FindBuildable( BA_H_REACTOR ); + tempent = G_Reactor( ); if( tempent == NULL ) // No reactor reason = IBE_RPTNOREAC; |