waypoint.c
changeset 3422 a6eba3443452
parent 3349 716104d39983
child 3448 bc96e486627d
equal deleted inserted replaced
3421:7968a4b5ff0a 3422:a6eba3443452
    64 }
    64 }
    65 
    65 
    66 /* Update the sign for the waypoint */
    66 /* Update the sign for the waypoint */
    67 static void UpdateWaypointSign(Waypoint* wp)
    67 static void UpdateWaypointSign(Waypoint* wp)
    68 {
    68 {
    69 	Point pt = RemapCoords2(TileX(wp->xy) * 16, TileY(wp->xy) * 16);
    69 	Point pt = RemapCoords2(TileX(wp->xy) * TILE_SIZE, TileY(wp->xy) * TILE_SIZE);
    70 	SetDParam(0, wp->index);
    70 	SetDParam(0, wp->index);
    71 	UpdateViewportSignPos(&wp->sign, pt.x, pt.y - 0x20, STR_WAYPOINT_VIEWPORT);
    71 	UpdateViewportSignPos(&wp->sign, pt.x, pt.y - 0x20, STR_WAYPOINT_VIEWPORT);
    72 }
    72 }
    73 
    73 
    74 /* Redraw the sign of a waypoint */
    74 /* Redraw the sign of a waypoint */