equal
deleted
inserted
replaced
234 { |
234 { |
235 assert(IsTileType(t, MP_STATION)); |
235 assert(IsTileType(t, MP_STATION)); |
236 return _m[t].m4; |
236 return _m[t].m4; |
237 } |
237 } |
238 |
238 |
|
239 static inline void SetStationTileRandomBits(TileIndex t, byte random_bits) |
|
240 { |
|
241 assert(IsTileType(t, MP_STATION)); |
|
242 SB(_m[t].m3, 4, 4, random_bits); |
|
243 } |
|
244 |
|
245 static inline byte GetStationTileRandomBits(TileIndex t) |
|
246 { |
|
247 assert(IsTileType(t, MP_STATION)); |
|
248 return GB(_m[t].m3, 4, 4); |
|
249 } |
|
250 |
239 static inline void MakeStation(TileIndex t, Owner o, StationID sid, byte m5) |
251 static inline void MakeStation(TileIndex t, Owner o, StationID sid, byte m5) |
240 { |
252 { |
241 SetTileType(t, MP_STATION); |
253 SetTileType(t, MP_STATION); |
242 SetTileOwner(t, o); |
254 SetTileOwner(t, o); |
243 _m[t].m2 = sid; |
255 _m[t].m2 = sid; |