mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-09-03 03:49:12 +00:00
(svn r12043) -Fix [FS#1736]: allow building transmitters and lighthouses on tree tiles
This commit is contained in:
@@ -388,7 +388,8 @@ static void PlaceProc_RockyArea(TileIndex tile)
|
|||||||
|
|
||||||
static void PlaceProc_LightHouse(TileIndex tile)
|
static void PlaceProc_LightHouse(TileIndex tile)
|
||||||
{
|
{
|
||||||
if (!IsTileType(tile, MP_CLEAR) || GetTileSlope(tile, NULL) != SLOPE_FLAT || IsBridgeAbove(tile)) {
|
/* not flat || not(trees || clear without bridge above) */
|
||||||
|
if (GetTileSlope(tile, NULL) != SLOPE_FLAT || !(IsTileType(tile, MP_TREES) || (IsTileType(tile, MP_CLEAR) && !IsBridgeAbove(tile)))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -399,7 +400,8 @@ static void PlaceProc_LightHouse(TileIndex tile)
|
|||||||
|
|
||||||
static void PlaceProc_Transmitter(TileIndex tile)
|
static void PlaceProc_Transmitter(TileIndex tile)
|
||||||
{
|
{
|
||||||
if (!IsTileType(tile, MP_CLEAR) || GetTileSlope(tile, NULL) != SLOPE_FLAT || IsBridgeAbove(tile)) {
|
/* not flat || not(trees || clear without bridge above) */
|
||||||
|
if (GetTileSlope(tile, NULL) != SLOPE_FLAT || !(IsTileType(tile, MP_TREES) || (IsTileType(tile, MP_CLEAR) && !IsBridgeAbove(tile)))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user