diff options
author | rubidium <rubidium@openttd.org> | 2007-03-01 13:35:40 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-03-01 13:35:40 +0000 |
commit | 05fe6d2362fe8a7b657c30629d6883dbb5660b29 (patch) | |
tree | 0880b99a709837e01bdb6038d8179f7ed60b4986 /src/rail_map.h | |
parent | ef9b0bdd88fc39dea58b81950d3a43f6e839f2dd (diff) | |
download | openttd-05fe6d2362fe8a7b657c30629d6883dbb5660b29.tar.xz |
(svn r8954) -Codechange: remove direct map accesses from non-map-accessor headers.
Diffstat (limited to 'src/rail_map.h')
-rw-r--r-- | src/rail_map.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rail_map.h b/src/rail_map.h index 20df4e7be..540643253 100644 --- a/src/rail_map.h +++ b/src/rail_map.h @@ -113,6 +113,10 @@ static inline TrackBits GetRailWaypointBits(TileIndex t) return TrackToTrackBits(GetRailWaypointTrack(t)); } +static inline WaypointID GetWaypointIndex(TileIndex t) +{ + return (WaypointID)_m[t].m2; +} typedef enum SignalType { SIGTYPE_NORMAL = 0, // normal signal |