MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / IsReversingRoadTrackdir

Function IsReversingRoadTrackdir

src/track_func.h:673–677  ·  view source on GitHub ↗

* Checks whether the trackdir means that we are reversing. * @param dir the trackdir to check * @return true if it is a reversing road trackdir */

Source from the content-addressed store, hash-verified

671 * @return true if it is a reversing road trackdir
672 */
673inline 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

Callers 6

VehicleEnter_StationFunction · 0.85
GetCurrentMaxSpeedMethod · 0.85
GetVehicleTrackdirMethod · 0.85

Calls 1

Tested by

no test coverage detected