diff options
author | rubidium <rubidium@openttd.org> | 2011-11-04 11:36:10 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-11-04 11:36:10 +0000 |
commit | 459c9523e8acdf314ce697460f4768eec228daac (patch) | |
tree | 60320999f3a69b8595d152af6e9474292da902d8 /src/tile_cmd.h | |
parent | 19eabdba2cf0184d5dc55cb3b9b8a7b5fe7ccfd3 (diff) | |
download | openttd-459c9523e8acdf314ce697460f4768eec228daac.tar.xz |
(svn r23107) -Codechange: let GetSlopePixelZ and TerraformTile tile type functions use int z as well
Diffstat (limited to 'src/tile_cmd.h')
-rw-r--r-- | src/tile_cmd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tile_cmd.h b/src/tile_cmd.h index bdab10621..7dae7a1ca 100644 --- a/src/tile_cmd.h +++ b/src/tile_cmd.h @@ -70,7 +70,7 @@ struct TileDesc { * @param ti Information about the tile to draw */ typedef void DrawTileProc(TileInfo *ti); -typedef uint GetSlopeZProc(TileIndex tile, uint x, uint y); +typedef int GetSlopeZProc(TileIndex tile, uint x, uint y); typedef CommandCost ClearTileProc(TileIndex tile, DoCommandFlag flags); /** @@ -133,7 +133,7 @@ typedef Foundation GetFoundationProc(TileIndex tile, Slope tileh); * @param tileh_new Slope after terraforming. * @return Error code or extra cost for terraforming (like clearing land, building foundations, etc., but not the terraforming itself.) */ -typedef CommandCost TerraformTileProc(TileIndex tile, DoCommandFlag flags, uint z_new, Slope tileh_new); +typedef CommandCost TerraformTileProc(TileIndex tile, DoCommandFlag flags, int z_new, Slope tileh_new); /** * Set of callback functions for performing tile operations of a given tile type. |