(svn r12014) -Fix: lighthouses and transmitters were never supposed to be build on a slope.
authorrubidium
Tue, 29 Jan 2008 14:19:07 +0000
changeset 8940 968e465c7328
parent 8939 9d51d72e7e3d
child 8941 f93c669d3ca6
(svn r12014) -Fix: lighthouses and transmitters were never supposed to be build on a slope.
src/terraform_gui.cpp
--- a/src/terraform_gui.cpp	Tue Jan 29 14:17:13 2008 +0000
+++ b/src/terraform_gui.cpp	Tue Jan 29 14:19:07 2008 +0000
@@ -385,7 +385,7 @@
 
 static void PlaceProc_LightHouse(TileIndex tile)
 {
-	if (!IsTileType(tile, MP_CLEAR) || IsSteepSlope(GetTileSlope(tile, NULL)) || IsBridgeAbove(tile)) {
+	if (!IsTileType(tile, MP_CLEAR) || GetTileSlope(tile, NULL) != SLOPE_FLAT || IsBridgeAbove(tile)) {
 		return;
 	}
 
@@ -396,7 +396,7 @@
 
 static void PlaceProc_Transmitter(TileIndex tile)
 {
-	if (!IsTileType(tile, MP_CLEAR) || IsSteepSlope(GetTileSlope(tile, NULL)) || IsBridgeAbove(tile)) {
+	if (!IsTileType(tile, MP_CLEAR) || GetTileSlope(tile, NULL) != SLOPE_FLAT || IsBridgeAbove(tile)) {
 		return;
 	}