mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-11 18:10:14 +00:00
(svn r12014) -Fix: lighthouses and transmitters were never supposed to be build on a slope.
This commit is contained in:
parent
9c4cb84c03
commit
a736e8500a
@ -385,7 +385,7 @@ static void PlaceProc_RockyArea(TileIndex tile)
|
|||||||
|
|
||||||
static void PlaceProc_LightHouse(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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -396,7 +396,7 @@ static void PlaceProc_LightHouse(TileIndex tile)
|
|||||||
|
|
||||||
static void PlaceProc_Transmitter(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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user