Merge branch 'enhanced_viewport_overlay-sx' into jgrpp
This commit is contained in:
		@@ -2341,7 +2341,7 @@ void ViewportMapDraw(const ViewPort * const vp)
 | 
				
			|||||||
		const TunnelBridgeToMap * const tbtm_end = _vd.tunnel_bridge_to_map.End();
 | 
							const TunnelBridgeToMap * const tbtm_end = _vd.tunnel_bridge_to_map.End();
 | 
				
			||||||
		for (const TunnelBridgeToMap *tbtm = _vd.tunnel_bridge_to_map.Begin(); tbtm != tbtm_end; tbtm++) { // For each bridge or tunnel
 | 
							for (const TunnelBridgeToMap *tbtm = _vd.tunnel_bridge_to_map.Begin(); tbtm != tbtm_end; tbtm++) { // For each bridge or tunnel
 | 
				
			||||||
			TileIndex tile = tbtm->from_tile;
 | 
								TileIndex tile = tbtm->from_tile;
 | 
				
			||||||
			const int z = TileHeight(tile) * 4;
 | 
								const int z = (IsBridge(tile) ? GetBridgeHeight(tile) : GetTileZ(tile)) * TILE_HEIGHT;
 | 
				
			||||||
			TileIndexDiff delta = TileOffsByDiagDir(GetTunnelBridgeDirection(tile));
 | 
								TileIndexDiff delta = TileOffsByDiagDir(GetTunnelBridgeDirection(tile));
 | 
				
			||||||
			for (; tile != tbtm->to_tile; tile += delta) { // For each tile
 | 
								for (; tile != tbtm->to_tile; tile += delta) { // For each tile
 | 
				
			||||||
				const Point pt = RemapCoords(TileX(tile) * TILE_SIZE, TileY(tile) * TILE_SIZE, z);
 | 
									const Point pt = RemapCoords(TileX(tile) * TILE_SIZE, TileY(tile) * TILE_SIZE, z);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user