From 46db4f9058368cabe33622aad0e9ade01f9bd353 Mon Sep 17 00:00:00 2001 From: John Ellis Date: Sat, 3 Jul 2010 22:24:03 +0000 Subject: * (bug 4382) Allow marked repeater BP to be recovered for use when building in the reactor power zone. --- src/game/g_buildable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/g_buildable.c') diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index 5bf063dc..75cd07e1 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -3120,7 +3120,7 @@ static itemBuildError_t G_SufficientBPAvailable( buildable_t buildable, if( team == TEAM_HUMANS && buildable != BA_H_REACTOR && buildable != BA_H_REPEATER && - G_PowerEntityForPoint( ent->s.origin ) != G_PowerEntityForPoint( origin ) ) + ent->parentNode != G_PowerEntityForPoint( origin ) ) continue; if( !ent->inuse ) -- cgit