station_map.h
changeset 3742 c5ef7a92daa5
parent 3568 c60d7aceed1a
child 3766 fc2dea6ef369
equal deleted inserted replaced
3741:92c022b64b28 3742:c5ef7a92daa5
   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;