From 2210319386ab172899bc6ff56c0523f4d7b33a27 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Tue, 3 Apr 2001 00:04:10 +0000 Subject: Fixed the bug introduced through fixing the last bug --- src/game/g_buildable.c | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) (limited to 'src') 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 ) -- cgit