(svn r4386) -Codechange: Add and make use of IsCustomWaypoint

This commit is contained in:
celestar
2006-04-12 13:25:32 +00:00
parent 093984ea30
commit cb001ea14d
2 changed files with 6 additions and 1 deletions

View File

@@ -144,6 +144,11 @@ static inline void ClearCustomWaypointSprite(TileIndex t)
CLRBIT(_m[t].m3, 4);
}
static inline bool IsCustomWaypoint(TileIndex t)
{
return HASBIT(_m[t].m3, 4);
}
static inline Axis GetWaypointAxis(TileIndex t)
{
return HASBIT(_m[t].m5, 0) ? AXIS_Y : AXIS_X;