summaryrefslogtreecommitdiff
path: root/src/game/g_buildable.c
diff options
context:
space:
mode:
authorJohn Ellis <johne@verizon.net>2010-07-03 22:24:03 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:17:39 +0000
commit46db4f9058368cabe33622aad0e9ade01f9bd353 (patch)
treee7024942bdf5533cba596ab002687da903ef0ac8 /src/game/g_buildable.c
parentf1226b01bbdb96513c05aa7689e7e6b4cf367ba9 (diff)
* (bug 4382) Allow marked repeater BP to be recovered for use when
building in the reactor power zone.
Diffstat (limited to 'src/game/g_buildable.c')
-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 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 )