(svn r4088) -Codechange: Introduce {Unb,B}arCrossing and IsCrossingBarred to put and get the status of a level crossing
This commit is contained in:
14
road_map.h
14
road_map.h
@@ -66,6 +66,20 @@ static inline void SetCrossingRoadOwner(TileIndex t, Owner o)
|
||||
_m[t].m3 = o;
|
||||
}
|
||||
|
||||
static inline void UnbarCrossing(TileIndex t)
|
||||
{
|
||||
CLRBIT(_m[t].m5, 2);
|
||||
}
|
||||
|
||||
static inline void BarCrossing(TileIndex t)
|
||||
{
|
||||
SETBIT(_m[t].m5, 2);
|
||||
}
|
||||
|
||||
static inline bool IsCrossingBarred(TileIndex t)
|
||||
{
|
||||
return HASBIT(_m[t].m5, 2);
|
||||
}
|
||||
|
||||
typedef enum RoadType {
|
||||
ROAD_NORMAL,
|
||||
|
||||
Reference in New Issue
Block a user