equal
deleted
inserted
replaced
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 |