diff options
author | rubidium <rubidium@openttd.org> | 2008-01-29 14:19:07 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-01-29 14:19:07 +0000 |
commit | 9e7ad199b57ebd7103d83c4cfc6698cdcceda869 (patch) | |
tree | d4f536a69a0ad37de1a8f3df23603b30d51ba0a9 /src/terraform_gui.cpp | |
parent | ab7087173454e8857861770276f7b5cb827ac630 (diff) | |
download | openttd-9e7ad199b57ebd7103d83c4cfc6698cdcceda869.tar.xz |
(svn r12014) -Fix: lighthouses and transmitters were never supposed to be build on a slope.
Diffstat (limited to 'src/terraform_gui.cpp')
-rw-r--r-- | src/terraform_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/terraform_gui.cpp b/src/terraform_gui.cpp index 5981c27c8..b0d8cfee5 100644 --- a/src/terraform_gui.cpp +++ b/src/terraform_gui.cpp @@ -385,7 +385,7 @@ static void PlaceProc_RockyArea(TileIndex tile) 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_LightHouse(TileIndex tile) 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; } |