(svn r23106) -Codechange: pass int* to GetTileSlope and friends

This commit is contained in:
rubidium
2011-11-04 11:30:37 +00:00
parent 6fe13b1451
commit 70faeeaba9
26 changed files with 86 additions and 86 deletions

View File

@@ -109,7 +109,7 @@ static void DrawTile_Clear(TileInfo *ti)
static uint GetSlopePixelZ_Clear(TileIndex tile, uint x, uint y)
{
uint z;
int z;
Slope tileh = GetTilePixelSlope(tile, &z);
return z + GetPartialPixelZ(x & 0xF, y & 0xF, tileh);
@@ -230,7 +230,7 @@ static void TileLoop_Clear(TileIndex tile)
{
/* If the tile is at any edge flood it to prevent maps without water. */
if (_settings_game.construction.freeform_edges && DistanceFromEdge(tile) == 1) {
uint z;
int z;
Slope slope = GetTileSlope(tile, &z);
if (z == 0 && slope == SLOPE_FLAT) {
DoFloodTile(tile);