diff options
author | Darkvater <darkvater@openttd.org> | 2006-04-27 08:24:48 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-04-27 08:24:48 +0000 |
commit | 8070a68b2cfdee091077f6c093d664228b12ca98 (patch) | |
tree | 35862323e21a215d1f58c375953ee675af7fc75f /road_cmd.c | |
parent | a0c9b0380118cf793ef2e35ff8abaec96fd70b94 (diff) | |
download | openttd-8070a68b2cfdee091077f6c093d664228b12ca98.tar.xz |
(svn r4590) - Fix (r4585): warning: suggest parentheses around && within ||. Sorry
Diffstat (limited to 'road_cmd.c')
-rw-r--r-- | road_cmd.c | 2 |
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; |