summaryrefslogtreecommitdiff
path: root/road_cmd.c
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-04-27 08:24:48 +0000
committerDarkvater <Darkvater@openttd.org>2006-04-27 08:24:48 +0000
commitea1020d4fac279f76f38fc69cbf0a981b3fe775f (patch)
tree35862323e21a215d1f58c375953ee675af7fc75f /road_cmd.c
parente6d9d67f771e3cbd5a3dfc0e5dbd354308235b93 (diff)
downloadopenttd-ea1020d4fac279f76f38fc69cbf0a981b3fe775f.tar.xz
(svn r4590) - Fix (r4585): warning: suggest parentheses around && within ||. Sorry
Diffstat (limited to 'road_cmd.c')
-rw-r--r--road_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/road_cmd.c b/road_cmd.c
index 66ee4521a..1a411c705 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;