* Checks whether the trackdir means that we are reversing. * @param dir the trackdir to check * @return true if it is a reversing road trackdir */
| 671 | * @return true if it is a reversing road trackdir |
| 672 | */ |
| 673 | inline bool IsReversingRoadTrackdir(Trackdir dir) |
| 674 | { |
| 675 | assert(IsValidTrackdirForRoadVehicle(dir)); |
| 676 | return (dir & 0x07) >= 6; |
| 677 | } |
| 678 | |
| 679 | /** |
| 680 | * Checks whether the given trackdir is a straight road |
no test coverage detected