From 19eabdba2cf0184d5dc55cb3b9b8a7b5fe7ccfd3 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 4 Nov 2011 11:30:37 +0000 Subject: (svn r23106) -Codechange: pass int* to GetTileSlope and friends --- src/tree_cmd.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/tree_cmd.cpp') diff --git a/src/tree_cmd.cpp b/src/tree_cmd.cpp index e66649dde..61d3bf912 100644 --- a/src/tree_cmd.cpp +++ b/src/tree_cmd.cpp @@ -216,7 +216,7 @@ static void PlaceTreeGroups(uint num_groups) * @param tile The base tile to add a new tree somewhere around * @param height The height (like the one from the tile) */ -static void PlaceTreeAtSameHeight(TileIndex tile, uint height) +static void PlaceTreeAtSameHeight(TileIndex tile, int height) { for (uint i = 0; i < DEFAULT_TREE_STEPS; i++) { uint32 r = Random(); @@ -247,7 +247,7 @@ static void PlaceTreeAtSameHeight(TileIndex tile, uint height) */ void PlaceTreesRandomly() { - uint i, j, ht; + int i, j, ht; i = ScaleByMapSize(DEFAULT_TREE_STEPS); if (_game_mode == GM_EDITOR) i /= EDITOR_TREE_DIV; @@ -518,7 +518,7 @@ static void DrawTile_Trees(TileInfo *ti) static uint GetSlopePixelZ_Trees(TileIndex tile, uint x, uint y) { - uint z; + int z; Slope tileh = GetTilePixelSlope(tile, &z); return z + GetPartialPixelZ(x & 0xF, y & 0xF, tileh); -- cgit v1.2.3-54-g00ecf