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/station_cmd.cpp | |
parent | 643c54d288e091adf386bacd3615991e24e8909f (diff) | |
download | openttd-19eabdba2cf0184d5dc55cb3b9b8a7b5fe7ccfd3.tar.xz |
(svn r23106) -Codechange: pass int* to GetTileSlope and friends
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r-- | src/station_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 8e9beead6..9a930d87c 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -664,7 +664,7 @@ CommandCost CheckBuildableTile(TileIndex tile, uint invalid_dirs, int &allowed_z CommandCost ret = EnsureNoVehicleOnGround(tile); if (ret.Failed()) return ret; - uint z; + int z; Slope tileh = GetTileSlope(tile, &z); /* Prohibit building if @@ -2584,7 +2584,7 @@ static void DrawTile_Station(TileInfo *ti) /* Station has custom foundations. * Check whether the foundation continues beyond the tile's upper sides. */ uint edge_info = 0; - uint z; + int z; Slope slope = GetFoundationPixelSlope(ti->tile, &z); if (!HasFoundationNW(ti->tile, slope, z)) SetBit(edge_info, 0); if (!HasFoundationNE(ti->tile, slope, z)) SetBit(edge_info, 1); |