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
commit8070a68b2cfdee091077f6c093d664228b12ca98 (patch)
tree35862323e21a215d1f58c375953ee675af7fc75f /road_cmd.c
parenta0c9b0380118cf793ef2e35ff8abaec96fd70b94 (diff)
downloadopenttd-8070a68b2cfdee091077f6c093d664228b12ca98.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;