diff options
author | rubidium <rubidium@openttd.org> | 2007-05-25 22:07:40 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-05-25 22:07:40 +0000 |
commit | 17390241e651cb9d5ef60aceb56e14fd50a16199 (patch) | |
tree | b86593b9aea7311014688cdbe56f3789049c2dfb /src/road.h | |
parent | 9e7798c42e14bc3a40f7f9f0357caa45667ace2a (diff) | |
download | openttd-17390241e651cb9d5ef60aceb56e14fd50a16199.tar.xz |
(svn r9923) -Add: support for Action 0 Road vehicles, property 1C, bit 0.
Diffstat (limited to 'src/road.h')
-rw-r--r-- | src/road.h | 6 |
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 */ |