(svn r9923) -Add: support for Action 0 Road vehicles, property 1C, bit 0.
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user