src/waypoint.cpp
changeset 9354 845e07db4549
parent 9129 a7b713cb0422
child 9413 7042a8ec3fa8
--- a/src/waypoint.cpp	Sun May 25 17:36:49 2008 +0000
+++ b/src/waypoint.cpp	Sun May 25 19:17:03 2008 +0000
@@ -210,7 +210,7 @@
 
 	tileh = GetTileSlope(tile, NULL);
 	if (tileh != SLOPE_FLAT &&
-			(!_patches.build_on_slopes || IsSteepSlope(tileh) || !(tileh & (0x3 << axis)) || !(tileh & ~(0x3 << axis)))) {
+			(!_settings.construction.build_on_slopes || IsSteepSlope(tileh) || !(tileh & (0x3 << axis)) || !(tileh & ~(0x3 << axis)))) {
 		return_cmd_error(STR_0007_FLAT_LAND_REQUIRED);
 	}