(svn r4384) -Codechange: rail drawing code

-Added a function to obtain the axis of a waypoint
    -Moved the waypoint layout tables from the depot layout tables into an own one
    -Use GetRailTileSubtype
This commit is contained in:
celestar
2006-04-12 12:50:40 +00:00
parent f733f94677
commit bdcb4bbf1d
3 changed files with 12 additions and 5 deletions

View File

@@ -144,6 +144,11 @@ static inline void ClearCustomWaypointSprite(TileIndex t)
CLRBIT(_m[t].m3, 4);
}
static inline Axis GetWaypointAxis(TileIndex t)
{
return HASBIT(_m[t].m5, 0) ? AXIS_Y : AXIS_X;
}
typedef enum SignalType {
SIGTYPE_NORMAL = 0, // normal signal