(svn r3766) Add a function to get the RoadBits from an arbitrary tile

This commit is contained in:
tron
2006-03-05 12:22:20 +00:00
parent 62abd9c1e2
commit 4da99989b9
6 changed files with 73 additions and 37 deletions

View File

@@ -244,7 +244,7 @@ static inline bool IsBuoyTile(TileIndex tile)
/* Get's the direction the station exit points towards. Ie, returns 0 for a
* station with the exit NE. */
static inline byte GetRoadStationDir(TileIndex tile)
static inline DiagDirection GetRoadStationDir(TileIndex tile)
{
assert(IsRoadStationTile(tile));
return (_m[tile].m5 - 0x43) & 3;