Viewport map: Adjust vertical alignment of tunnels

This commit is contained in:
Jonathan G Rennison
2023-05-24 20:15:55 +01:00
parent 5428b6dd9b
commit 9cb992ab14

View File

@@ -3533,7 +3533,7 @@ void ViewportMapDraw(Viewport * const vp)
});
for (; iter != storage.tunnels.end() && iter->y_intercept <= y_intercept_max; ++iter) {
const TunnelToMap &ttm = *iter;
const int tunnel_z = ttm.tunnel_z * TILE_HEIGHT;
const int tunnel_z = (ttm.tunnel_z - 1) * TILE_HEIGHT;
const Point pt_from = RemapCoords(TileX(ttm.tb.from_tile) * TILE_SIZE, TileY(ttm.tb.from_tile) * TILE_SIZE, tunnel_z);
const Point pt_to = RemapCoords(TileX(ttm.tb.to_tile) * TILE_SIZE, TileY(ttm.tb.to_tile) * TILE_SIZE, tunnel_z);