waypoint.h
changeset 2668 54d9f9d4dca3
parent 2625 66b3d632dcd2
child 2670 34970983ef08
--- a/waypoint.h	Wed Nov 16 14:30:24 2005 +0000
+++ b/waypoint.h	Wed Nov 16 14:41:01 2005 +0000
@@ -51,9 +51,9 @@
 #define FOR_ALL_WAYPOINTS_FROM(wp, start) for (wp = GetWaypoint(start); wp != NULL; wp = (wp->index + 1 < GetWaypointPoolSize()) ? GetWaypoint(wp->index + 1) : NULL)
 #define FOR_ALL_WAYPOINTS(wp) FOR_ALL_WAYPOINTS_FROM(wp, 0)
 
-static inline bool IsRailWaypoint(byte m5)
+static inline bool IsRailWaypoint(TileIndex tile)
 {
-	return (m5 & 0xFC) == 0xC4;
+	return (_m[tile].m5 & 0xFC) == 0xC4;
 }
 
 int32 RemoveTrainWaypoint(TileIndex tile, uint32 flags, bool justremove);