rail_cmd.c
changeset 2422 914a12dee832
parent 2364 5ac6c8d6e031
child 2425 99e1e8430a28
--- a/rail_cmd.c	Tue Sep 13 09:23:23 2005 +0000
+++ b/rail_cmd.c	Tue Sep 13 12:19:27 2005 +0000
@@ -247,8 +247,7 @@
 				)) { // partly up
 			if (existing != 0) {
 				return 0;
-			} else if (!_patches.build_on_slopes ||
-					(_is_ai_player && !_patches.ainew_active)) {
+			} else if (!_patches.build_on_slopes || _is_old_ai_player) {
 				return_cmd_error(STR_1000_LAND_SLOPED_IN_WRONG_DIRECTION);
 			} else {
 				return _price.terraform;
@@ -679,7 +678,7 @@
 	*/
 
 	if (tileh != 0 && (
-			(!_patches.ainew_active && _is_ai_player) ||
+			_is_old_ai_player ||
 			!_patches.build_on_slopes ||
 			IsSteepTileh(tileh) ||
 			!CanBuildDepotByTileh(p2, tileh)