(svn r4541) Add a type for slopes and replace many magic numbers by the appropriate enums
This commit is contained in:
@@ -1204,7 +1204,7 @@ static void PlaceProc_RockyArea(TileIndex tile)
|
||||
|
||||
static void PlaceProc_LightHouse(TileIndex tile)
|
||||
{
|
||||
if (!IsTileType(tile, MP_CLEAR) || IsSteepTileh(GetTileSlope(tile, NULL))) {
|
||||
if (!IsTileType(tile, MP_CLEAR) || IsSteepSlope(GetTileSlope(tile, NULL))) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1215,7 +1215,7 @@ static void PlaceProc_LightHouse(TileIndex tile)
|
||||
|
||||
static void PlaceProc_Transmitter(TileIndex tile)
|
||||
{
|
||||
if (!IsTileType(tile, MP_CLEAR) || IsSteepTileh(GetTileSlope(tile, NULL))) {
|
||||
if (!IsTileType(tile, MP_CLEAR) || IsSteepSlope(GetTileSlope(tile, NULL))) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user