station_map.h
changeset 3568 c60d7aceed1a
parent 3545 b08ce1bbb589
child 3742 c5ef7a92daa5
equal deleted inserted replaced
3567:24ef003de86a 3568:c60d7aceed1a
   216 	assert(IsDock(t));
   216 	assert(IsDock(t));
   217 
   217 
   218 	return dock_offset[GetDockDirection(t)];
   218 	return dock_offset[GetDockDirection(t)];
   219 }
   219 }
   220 
   220 
   221 static inline bool IsCustomStationSprite(TileIndex t)
   221 static inline bool IsCustomStationSpecIndex(TileIndex t)
   222 {
   222 {
   223 	assert(IsTileType(t, MP_STATION));
   223 	assert(IsTileType(t, MP_STATION));
   224 	return HASBIT(_m[t].m3, 4);
   224 	return _m[t].m4 != 0;
   225 }
   225 }
   226 
   226 
   227 static inline void SetCustomStationSprite(TileIndex t, byte sprite)
   227 static inline void SetCustomStationSpecIndex(TileIndex t, byte specindex)
   228 {
   228 {
   229 	assert(IsTileType(t, MP_STATION));
   229 	assert(IsTileType(t, MP_STATION));
   230 	SETBIT(_m[t].m3, 4);
   230 	_m[t].m4 = specindex;
   231 	_m[t].m4 = sprite;
   231 }
   232 }
   232 
   233 
   233 static inline uint GetCustomStationSpecIndex(TileIndex t)
   234 static inline uint GetCustomStationSprite(TileIndex t)
       
   235 {
   234 {
   236 	assert(IsTileType(t, MP_STATION));
   235 	assert(IsTileType(t, MP_STATION));
   237 	return _m[t].m4;
   236 	return _m[t].m4;
   238 }
   237 }
   239 
   238