diff -r 92c022b64b28 -r c5ef7a92daa5 station_map.h --- a/station_map.h Wed May 03 21:19:21 2006 +0000 +++ b/station_map.h Wed May 03 21:25:49 2006 +0000 @@ -236,6 +236,18 @@ return _m[t].m4; } +static inline void SetStationTileRandomBits(TileIndex t, byte random_bits) +{ + assert(IsTileType(t, MP_STATION)); + SB(_m[t].m3, 4, 4, random_bits); +} + +static inline byte GetStationTileRandomBits(TileIndex t) +{ + assert(IsTileType(t, MP_STATION)); + return GB(_m[t].m3, 4, 4); +} + static inline void MakeStation(TileIndex t, Owner o, StationID sid, byte m5) { SetTileType(t, MP_STATION);