* Maps a track and a full (8-way) direction to the trackdir that represents * the track running in the given direction. */
| 496 | * the track running in the given direction. |
| 497 | */ |
| 498 | inline Trackdir TrackDirectionToTrackdir(Track track, Direction dir) |
| 499 | { |
| 500 | assert(IsValidTrack(track)); |
| 501 | assert(IsValidDirection(dir)); |
| 502 | extern const Trackdir _track_direction_to_trackdir[TRACK_END][DIR_END]; |
| 503 | return _track_direction_to_trackdir[track][dir]; |
| 504 | } |
| 505 | |
| 506 | /** |
| 507 | * Maps a (4-way) direction to the diagonal track incidating with that diagdir |
no test coverage detected