diff src/town_cmd.cpp @ 18271:f63c96a8cfb5 draft

(svn r23107) -Codechange: let GetSlopePixelZ and TerraformTile tile type functions use int z as well
author rubidium <rubidium@openttd.org>
date Fri, 04 Nov 2011 11:36:10 +0000 (2011-11-04)
parents 432112453b2e
children 3ebab55c5495
line wrap: on
line diff
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -255,7 +255,7 @@
 	}
 }
 
-static uint GetSlopePixelZ_Town(TileIndex tile, uint x, uint y)
+static int GetSlopePixelZ_Town(TileIndex tile, uint x, uint y)
 {
 	return GetTileMaxPixelZ(tile);
 }
@@ -3046,7 +3046,7 @@
 	}
 }
 
-static CommandCost TerraformTile_Town(TileIndex tile, DoCommandFlag flags, uint z_new, Slope tileh_new)
+static CommandCost TerraformTile_Town(TileIndex tile, DoCommandFlag flags, int z_new, Slope tileh_new)
 {
 	if (AutoslopeEnabled()) {
 		HouseID house = GetHouseType(tile);