(svn r4590) - Fix (r4585): warning: suggest parentheses around && within ||. Sorry
authorDarkvater
Thu, 27 Apr 2006 08:24:48 +0000
changeset 3673 53c64edf6aeb
parent 3672 73caf2e829f8
child 3674 e55478cff17e
(svn r4590) - Fix (r4585): warning: suggest parentheses around && within ||. Sorry
road_cmd.c
--- a/road_cmd.c	Thu Apr 27 06:33:21 2006 +0000
+++ b/road_cmd.c	Thu Apr 27 08:24:48 2006 +0000
@@ -388,7 +388,7 @@
 	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;