(svn r4724) - Newstations: Add per-tile random data for station tiles.

This commit is contained in:
peter1138
2006-05-03 21:25:49 +00:00
parent c722c88f43
commit 7826236b23
4 changed files with 15 additions and 1 deletions

View File

@@ -236,6 +236,18 @@ static inline uint GetCustomStationSpecIndex(TileIndex t)
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);