(svn r3795) Add a function to request the orientation of a depot

This commit is contained in:
tron
2006-03-08 15:29:23 +00:00
parent c3fffd07f2
commit 86550c94bc
4 changed files with 22 additions and 14 deletions

View File

@@ -62,6 +62,12 @@ static inline RoadType GetRoadType(TileIndex tile)
}
static inline DiagDirection GetRoadDepotDirection(TileIndex tile)
{
return (DiagDirection)GB(_m[tile].m5, 0, 2);
}
/**
* Returns the RoadBits on an arbitrary tile
* Special behavior: