summaryrefslogtreecommitdiff
path: root/src/road_map.h
diff options
context:
space:
mode:
authorskidd13 <skidd13@openttd.org>2008-03-25 18:59:25 +0000
committerskidd13 <skidd13@openttd.org>2008-03-25 18:59:25 +0000
commit82eebc20c02422cc5e3cb5ec9d7a5c7898208b79 (patch)
tree377797a9be04f0ebe6ef3ad5e94c983c1760396f /src/road_map.h
parent2023f5954122a7dbb66963cfaa54678719aae011 (diff)
downloadopenttd-82eebc20c02422cc5e3cb5ec9d7a5c7898208b79.tar.xz
(svn r12419) -Cleanup: of the internal road-piece building and removing.
Diffstat (limited to 'src/road_map.h')
-rw-r--r--src/road_map.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/road_map.h b/src/road_map.h
index 2f29a97be..c4bb97712 100644
--- a/src/road_map.h
+++ b/src/road_map.h
@@ -65,6 +65,12 @@ static inline RoadBits GetRoadBits(TileIndex t, RoadType rt)
}
}
+/**
+ * Get all set RoadBits on the given tile
+ *
+ * @param tile The tile from which we want to get the RoadBits
+ * @return all set RoadBits of the tile
+ */
static inline RoadBits GetAllRoadBits(TileIndex tile)
{
return GetRoadBits(tile, ROADTYPE_ROAD) | GetRoadBits(tile, ROADTYPE_TRAM) | GetRoadBits(tile, ROADTYPE_HWAY);