| 2204 | } |
| 2205 | |
| 2206 | ClosestDepot Train::FindClosestDepot() |
| 2207 | { |
| 2208 | FindDepotData tfdd = FindClosestTrainDepot(this, 0); |
| 2209 | if (tfdd.best_length == UINT_MAX) return ClosestDepot(); |
| 2210 | |
| 2211 | return ClosestDepot(tfdd.tile, GetDepotIndex(tfdd.tile), tfdd.reverse); |
| 2212 | } |
| 2213 | |
| 2214 | /** Play a sound for a train leaving the station. */ |
| 2215 | void Train::PlayLeaveStationSound(bool force) const |
nothing calls this directly
no test coverage detected