(svn r23319) -Fix (r23316): Offsets of viewport signs were not scaled up.

This commit is contained in:
peter1138
2011-11-24 17:37:20 +00:00
parent 64559ea8d3
commit 0043123c33
4 changed files with 5 additions and 5 deletions

View File

@@ -38,7 +38,7 @@ void Waypoint::UpdateVirtCoord()
{
Point pt = RemapCoords2(TileX(this->xy) * TILE_SIZE, TileY(this->xy) * TILE_SIZE);
SetDParam(0, this->index);
this->sign.UpdatePosition(pt.x, pt.y - 0x20, STR_VIEWPORT_WAYPOINT);
this->sign.UpdatePosition(pt.x, pt.y - 32 * ZOOM_LVL_BASE, STR_VIEWPORT_WAYPOINT);
/* Recenter viewport */
InvalidateWindowData(WC_WAYPOINT_VIEW, this->index);
}