(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 8444 0bf94f3040be
parent 8443 acae72eb6e52
child 8445 54a5d84d1d7d
(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;
 	}