From fc4a046fe23b2727ac1ab7a6590450b48f0e01d9 Mon Sep 17 00:00:00 2001 From: tron Date: Mon, 19 Jun 2006 09:15:16 +0000 Subject: (svn r5313) Move IsRailWaypoint() to rail_map.h and remove unused enum --- waypoint.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'waypoint.h') diff --git a/waypoint.h b/waypoint.h index d32c85a18..207b46027 100644 --- a/waypoint.h +++ b/waypoint.h @@ -24,11 +24,6 @@ struct Waypoint { byte deleted; ///< Delete counter. If greater than 0 then it is decremented until it reaches 0; the waypoint is then is deleted. }; -enum { - RAIL_TILE_WAYPOINT = 0xC4, - RAIL_WAYPOINT_TRACK_MASK = 1, -}; - extern MemoryPool _waypoint_pool; /** @@ -55,10 +50,6 @@ static inline bool IsWaypointIndex(uint index) #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(TileIndex tile) -{ - return (_m[tile].m5 & 0xFC) == 0xC4; -} /** * Fetch a waypoint by tile -- cgit v1.2.3-54-g00ecf