Changeset - r23733:7a6e2e6db717
[Not reviewed]
master
0 1 0
PeterN - 5 years ago 2019-05-13 11:27:35
peter1138@openttd.org
Fix e8d397e4ee: Avoid using RemapCoords2 during savegame conversion. (#7588)
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/viewport.cpp
Show inline comments
 
@@ -2142,7 +2142,7 @@ ViewportSignKdtreeItem ViewportSignKdtre
 
	item.id.station = id;
 

	
 
	const Station *st = Station::Get(id);
 
	Point pt = RemapCoords2(TileX(st->xy) * TILE_SIZE, TileY(st->xy) * TILE_SIZE);
 
	Point pt = RemapCoords(TileX(st->xy) * TILE_SIZE, TileY(st->xy) * TILE_SIZE, GetTileMaxZ(st->xy) * TILE_HEIGHT);
 

	
 
	pt.y -= 32 * ZOOM_LVL_BASE;
 
	if ((st->facilities & FACIL_AIRPORT) && st->airport.type == AT_OILRIG) pt.y -= 16 * ZOOM_LVL_BASE;
 
@@ -2163,7 +2163,7 @@ ViewportSignKdtreeItem ViewportSignKdtre
 
	item.id.station = id;
 

	
 
	const Waypoint *st = Waypoint::Get(id);
 
	Point pt = RemapCoords2(TileX(st->xy) * TILE_SIZE, TileY(st->xy) * TILE_SIZE);
 
	Point pt = RemapCoords(TileX(st->xy) * TILE_SIZE, TileY(st->xy) * TILE_SIZE, GetTileMaxZ(st->xy) * TILE_HEIGHT);
 

	
 
	pt.y -= 32 * ZOOM_LVL_BASE;
 

	
0 comments (0 inline, 0 general)