diff options
author | celestar <celestar@openttd.org> | 2006-04-03 09:07:21 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2006-04-03 09:07:21 +0000 |
commit | cc87f682b9cd9c25ee58cec1b63792e4ef786aa9 (patch) | |
tree | e106242c0ac31fc61254791e0f6fcfe95db2baad /waypoint.c | |
parent | 3aa1e38be6e0a3c01346fe4db1bb92b148d0f2a9 (diff) | |
download | openttd-cc87f682b9cd9c25ee58cec1b63792e4ef786aa9.tar.xz |
(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
Diffstat (limited to 'waypoint.c')
-rw-r--r-- | waypoint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/waypoint.c b/waypoint.c index c58556880..f06170370 100644 --- a/waypoint.c +++ b/waypoint.c @@ -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); } |