summaryrefslogtreecommitdiff
path: root/src/clear_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/clear_cmd.cpp')
-rw-r--r--src/clear_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/clear_cmd.cpp b/src/clear_cmd.cpp
index c173d196e..b5c110808 100644
--- a/src/clear_cmd.cpp
+++ b/src/clear_cmd.cpp
@@ -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);