From a8d9b4e040cf4fd4dd0ceb4e746985aafcb635f8 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 25 May 2007 22:07:40 +0000 Subject: (svn r9923) -Add: support for Action 0 Road vehicles, property 1C, bit 0. --- src/road.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/road.h') 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 */ -- cgit v1.2.3-70-g09d2