changeset 9860:b376e0671c3d draft

(svn r14005) -Codechange: minor coding style fix
author smatz <smatz@openttd.org>
date Wed, 06 Aug 2008 15:52:04 +0000
parents f47f2138b166
children 9d1b7d450eb3
files src/rail_cmd.cpp
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/rail_cmd.cpp
+++ b/src/rail_cmd.cpp
@@ -294,8 +294,9 @@
 
 	/* 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);