summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-08-06 15:52:04 +0000
committersmatz <smatz@openttd.org>2008-08-06 15:52:04 +0000
commit132e7e9b69f1cf9d920fb2c8a40a57a23da4aeba (patch)
tree4bbdd1509d07a5080870e3ad391b4df8d7cc8221 /src
parent76b0ffd342c50798d27e85dcdf9a1e573defb8f0 (diff)
downloadopenttd-132e7e9b69f1cf9d920fb2c8a40a57a23da4aeba.tar.xz
(svn r14005) -Codechange: minor coding style fix
Diffstat (limited to 'src')
-rw-r--r--src/rail_cmd.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp
index 80d5de887..73b12983d 100644
--- a/src/rail_cmd.cpp
+++ b/src/rail_cmd.cpp
@@ -294,8 +294,9 @@ static CommandCost CheckRailSlope(Slope tileh, TrackBits rail_bits, TrackBits ex
/* check track/slope combination */
if ((f_new == FOUNDATION_INVALID) ||
- ((f_new != FOUNDATION_NONE) && (!_settings_game.construction.build_on_slopes || _is_old_ai_player))
- ) return_cmd_error(STR_1000_LAND_SLOPED_IN_WRONG_DIRECTION);
+ ((f_new != FOUNDATION_NONE) && (!_settings_game.construction.build_on_slopes || _is_old_ai_player))) {
+ return_cmd_error(STR_1000_LAND_SLOPED_IN_WRONG_DIRECTION);
+ }
Foundation f_old = GetRailFoundation(tileh, existing);
return CommandCost(EXPENSES_CONSTRUCTION, f_new != f_old ? _price.terraform : (Money)0);