(svn r23107) -Codechange: let GetSlopePixelZ and TerraformTile tile type functions use int z as well
This commit is contained in:
@@ -1337,7 +1337,7 @@ void UpdateNearestTownForRoadTiles(bool invalidate)
|
||||
}
|
||||
}
|
||||
|
||||
static uint GetSlopePixelZ_Road(TileIndex tile, uint x, uint y)
|
||||
static int GetSlopePixelZ_Road(TileIndex tile, uint x, uint y)
|
||||
{
|
||||
|
||||
if (IsNormalRoad(tile)) {
|
||||
@@ -1677,7 +1677,7 @@ static void ChangeTileOwner_Road(TileIndex tile, Owner old_owner, Owner new_owne
|
||||
}
|
||||
}
|
||||
|
||||
static CommandCost TerraformTile_Road(TileIndex tile, DoCommandFlag flags, uint z_new, Slope tileh_new)
|
||||
static CommandCost TerraformTile_Road(TileIndex tile, DoCommandFlag flags, int z_new, Slope tileh_new)
|
||||
{
|
||||
if (_settings_game.construction.build_on_slopes && AutoslopeEnabled()) {
|
||||
switch (GetRoadTileType(tile)) {
|
||||
|
Reference in New Issue
Block a user