diff options
author | rubidium <rubidium@openttd.org> | 2011-11-04 11:30:37 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-11-04 11:30:37 +0000 |
commit | 19eabdba2cf0184d5dc55cb3b9b8a7b5fe7ccfd3 (patch) | |
tree | e0fd85356bbcae38f6b50b8e7bc9470156b81e2d /src/tree_cmd.cpp | |
parent | 643c54d288e091adf386bacd3615991e24e8909f (diff) | |
download | openttd-19eabdba2cf0184d5dc55cb3b9b8a7b5fe7ccfd3.tar.xz |
(svn r23106) -Codechange: pass int* to GetTileSlope and friends
Diffstat (limited to 'src/tree_cmd.cpp')
-rw-r--r-- | src/tree_cmd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); |