diff options
author | tron <tron@openttd.org> | 2006-04-10 20:38:59 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-04-10 20:38:59 +0000 |
commit | f4a8818dbfd894cc8f601fddd12bf44c3ba4fc13 (patch) | |
tree | 260b650403d7fa2f913216f7766ef458141656e6 /road_map.h | |
parent | 8166a531792c2e9cd7f789618879658941f17010 (diff) | |
download | openttd-f4a8818dbfd894cc8f601fddd12bf44c3ba4fc13.tar.xz |
(svn r4348) Move IsLevelCrossing() from rail.h to road_map.h
Diffstat (limited to 'road_map.h')
-rw-r--r-- | road_map.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/road_map.h b/road_map.h index d7858cfc9..b93dd8581 100644 --- a/road_map.h +++ b/road_map.h @@ -40,6 +40,11 @@ static inline RoadType GetRoadType(TileIndex t) return GB(_m[t].m5, 4, 4); } +static inline bool IsLevelCrossing(TileIndex t) +{ + return GetRoadType(t) == ROAD_CROSSING; +} + static inline RoadBits GetRoadBits(TileIndex t) { |