diff options
author | celestar <celestar@openttd.org> | 2006-04-12 13:25:32 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2006-04-12 13:25:32 +0000 |
commit | b03bd97b4786649535ed22de113ebe79d20e7874 (patch) | |
tree | 53e7fe870644b0543687ff65ae366360f6d8dc78 /rail_map.h | |
parent | 5d949514966a75672cb0ec23f24567d262183cae (diff) | |
download | openttd-b03bd97b4786649535ed22de113ebe79d20e7874.tar.xz |
(svn r4386) -Codechange: Add and make use of IsCustomWaypoint
Diffstat (limited to 'rail_map.h')
-rw-r--r-- | rail_map.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rail_map.h b/rail_map.h index 08f6e5db3..2b09faf45 100644 --- a/rail_map.h +++ b/rail_map.h @@ -144,6 +144,11 @@ static inline void ClearCustomWaypointSprite(TileIndex t) CLRBIT(_m[t].m3, 4); } +static inline bool IsCustomWaypoint(TileIndex t) +{ + return HASBIT(_m[t].m3, 4); +} + static inline Axis GetWaypointAxis(TileIndex t) { return HASBIT(_m[t].m5, 0) ? AXIS_Y : AXIS_X; |