From 8bbeab8f5c799c60df647d8f6c637a12c09b5ce7 Mon Sep 17 00:00:00 2001 From: Christopher Schwarz Date: Thu, 8 Oct 2009 17:04:04 +0000 Subject: * Fix ability to build over a marked buildable that doesn't provide power (Rezyn) --- src/game/g_buildable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index a29997e1..3fb7296f 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -3149,7 +3149,7 @@ static itemBuildError_t G_SufficientBPAvailable( buildable_t buildable, // Don't allow a power source to be replaced by a dependant if( team == TEAM_HUMANS && - G_PowerEntityForPoint( origin ) != ent && + G_PowerEntityForPoint( origin ) == ent && buildable != BA_H_REPEATER && buildable != core ) continue; -- cgit