diff options
-rw-r--r-- | src/game/g_buildable.c | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c index 7d8e6343..d688a416 100644 --- a/src/game/g_buildable.c +++ b/src/game/g_buildable.c @@ -679,22 +679,12 @@ itemBuildError_t itemFits( gentity_t *ent, buildable_t buildable, int distance ) } } - if( !( - !Q_stricmp( closestPower->classname, "team_human_reactor" ) && - ( minDistance <= REACTOR_BASESIZE ) - ) && - !( - !Q_stricmp( closestPower->classname, "team_human_repeater" ) && - ( minDistance <= REPEATER_BASESIZE ) && - ( buildable == BA_H_SPAWN ) && - closestPower->powered - ) && - !( - !Q_stricmp( closestPower->classname, "team_human_repeater" ) && - ( minDistance <= REPEATER_BASESIZE ) && - closestPower->active && - closestPower->powered - ) + if( !(( !Q_stricmp( closestPower->classname, "team_human_reactor" ) && + minDistance <= REACTOR_BASESIZE ) || + ( !Q_stricmp( closestPower->classname, "team_human_repeater" ) && + minDistance <= REPEATER_BASESIZE && + ( ( buildable == BA_H_SPAWN && closestPower->powered ) || + ( closestPower->powered && closestPower->active ) ) ) ) ) { if( buildable != BA_H_REACTOR && buildable != BA_H_REPEATER ) |