summaryrefslogtreecommitdiff
path: root/src/road.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/road.h')
-rw-r--r--src/road.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/road.h b/src/road.h
index 4c875dce0..acb958246 100644
--- a/src/road.h
+++ b/src/road.h
@@ -43,7 +43,7 @@ DECLARE_ENUM_AS_BIT_SET(RoadTypes);
*/
static inline bool IsValidRoadType(RoadType rt)
{
- return rt == ROADTYPE_ROAD;
+ return rt == ROADTYPE_ROAD || rt == ROADTYPE_TRAM;
}
/**
@@ -53,7 +53,7 @@ static inline bool IsValidRoadType(RoadType rt)
*/
static inline bool AreValidRoadTypes(RoadTypes rts)
{
- return rts == ROADTYPES_ROAD;
+ return HASBIT(rts, ROADTYPE_ROAD) || HASBIT(rts, ROADTYPE_TRAM);
}
/**
@@ -115,4 +115,6 @@ static inline bool IsStraightRoadTrackdir(Trackdir dir)
*/
bool CheckAllowRemoveRoad(TileIndex tile, RoadBits remove, Owner owner, bool *edge_road, RoadType rt);
+void DrawTramCatenary(TileInfo *ti, RoadBits tram);
+
#endif /* ROAD_H */