diff options
author | rubidium <rubidium@openttd.org> | 2011-11-04 11:52:19 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-11-04 11:52:19 +0000 |
commit | 2a2c102b0b173d6ebcfb90291eb56e82c4e935a7 (patch) | |
tree | eea14ef6e9fcafd4cb4fb4a1a4aec8cbf1f928b7 /src/tunnelbridge_cmd.cpp | |
parent | 459c9523e8acdf314ce697460f4768eec228daac (diff) | |
download | openttd-2a2c102b0b173d6ebcfb90291eb56e82c4e935a7.tar.xz |
(svn r23108) -Codechange: more uint -> int / byte -> int conversions for Z related variables
Diffstat (limited to 'src/tunnelbridge_cmd.cpp')
-rw-r--r-- | src/tunnelbridge_cmd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp index 8edfdc810..067b8f219 100644 --- a/src/tunnelbridge_cmd.cpp +++ b/src/tunnelbridge_cmd.cpp @@ -1144,7 +1144,7 @@ static void DrawTile_TunnelBridge(TileInfo *ti) if (HasBit(rts, ROADTYPE_TRAM)) { uint offset = tunnelbridge_direction; - uint z = ti->z; + int z = ti->z; if (ti->tileh != SLOPE_FLAT) { offset = (offset + 1) & 1; z += TILE_HEIGHT; @@ -1278,7 +1278,7 @@ void DrawBridgeMiddle(const TileInfo *ti) int x = ti->x; int y = ti->y; uint bridge_z = GetBridgePixelHeight(rampsouth); - uint z = bridge_z - BRIDGE_Z_START; + int z = bridge_z - BRIDGE_Z_START; /* Add a bounding box that separates the bridge from things below it. */ AddSortableSpriteToDraw(SPR_EMPTY_BOUNDING_BOX, PAL_NONE, x, y, 16, 16, 1, bridge_z - TILE_HEIGHT + BB_Z_SEPARATOR); @@ -1457,7 +1457,7 @@ static void TileLoop_TunnelBridge(TileIndex tile) /* As long as we do not have a snow density, we want to use the density * from the entry endge. For tunnels this is the lowest point for bridges the highest point. * (Independent of foundations) */ - uint z = IsBridge(tile) ? GetTileMaxZ(tile) : GetTileZ(tile); + int z = IsBridge(tile) ? GetTileMaxZ(tile) : GetTileZ(tile); if (snow_or_desert != (z > GetSnowLine())) { SetTunnelBridgeSnowOrDesert(tile, !snow_or_desert); MarkTileDirtyByTile(tile); |