| 869 | |
| 870 | |
| 871 | const StationSpec *GetStationSpec(TileIndex t) |
| 872 | { |
| 873 | if (!IsCustomStationSpecIndex(t)) return nullptr; |
| 874 | |
| 875 | const BaseStation *st = BaseStation::GetByTile(t); |
| 876 | uint specindex = GetCustomStationSpecIndex(t); |
| 877 | return specindex < st->speclist.size() ? st->speclist[specindex].spec : nullptr; |
| 878 | } |
| 879 | |
| 880 | /** Wrapper for animation control, see GetStationCallback. */ |
| 881 | uint16_t GetAnimStationCallback(CallbackID callback, uint32_t param1, uint32_t param2, const StationSpec *statspec, BaseStation *st, TileIndex tile, int) |
no test coverage detected