From 8070a68b2cfdee091077f6c093d664228b12ca98 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Thu, 27 Apr 2006 08:24:48 +0000 Subject: [PATCH] (svn r4590) - Fix (r4585): warning: suggest parentheses around && within ||. Sorry --- road_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/road_cmd.c b/road_cmd.c index 66ee4521af..1a411c705e 100644 --- a/road_cmd.c +++ b/road_cmd.c @@ -388,7 +388,7 @@ do_clear:; ret = CheckRoadSlope(tileh, &pieces, existing); /* Return an error if we need to build a foundation (ret != 0) but the * current patch-setting is turned off (or stupid AI@work) */ - if (CmdFailed(ret) || ret != 0 && (!_patches.build_on_slopes || _is_old_ai_player)) + if (CmdFailed(ret) || (ret != 0 && (!_patches.build_on_slopes || _is_old_ai_player))) return_cmd_error(STR_1000_LAND_SLOPED_IN_WRONG_DIRECTION); cost += ret;