forked from mirror/OpenTTD
(svn r4249) -Codechange: Replace more occurences of 16 by TILE_SIZE and of 8 by TILE_HEIGHT. Reverted one change from the previous commit because it was faulty
This commit is contained in:
@@ -66,7 +66,7 @@ static Waypoint* AllocateWaypoint(void)
|
||||
/* Update the sign for the waypoint */
|
||||
static void UpdateWaypointSign(Waypoint* wp)
|
||||
{
|
||||
Point pt = RemapCoords2(TileX(wp->xy) * 16, TileY(wp->xy) * 16);
|
||||
Point pt = RemapCoords2(TileX(wp->xy) * TILE_SIZE, TileY(wp->xy) * TILE_SIZE);
|
||||
SetDParam(0, wp->index);
|
||||
UpdateViewportSignPos(&wp->sign, pt.x, pt.y - 0x20, STR_WAYPOINT_VIEWPORT);
|
||||
}
|
||||
|
Reference in New Issue
Block a user