(svn r5101) Add a function to convert an axis and a flag for north/south into a DiagDirection. Use it for bridge ramps and ship depots
This commit is contained in:
@@ -63,6 +63,11 @@ static inline Axis GetShipDepotAxis(TileIndex t)
|
||||
return (Axis)GB(_m[t].m5, 1, 1);
|
||||
}
|
||||
|
||||
static inline DiagDirection GetShipDepotDirection(TileIndex t)
|
||||
{
|
||||
return XYNSToDiagDir(GetShipDepotAxis(t), GB(_m[t].m5, 0, 1));
|
||||
}
|
||||
|
||||
static inline DiagDirection GetLockDirection(TileIndex t)
|
||||
{
|
||||
return (DiagDirection)GB(_m[t].m5, 0, 2);
|
||||
|
||||
Reference in New Issue
Block a user