MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / getTrackRotation

Function getTrackRotation

src/OpenLoco/src/Paint/PaintSignal.cpp:107–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 };
106
107 static uint8_t getTrackRotation(const bool isRight, const uint8_t trackId, const uint8_t rotation)
108 {
109 if (isRight)
110 {
111 return World::TrackData::getUnkTrack((trackId << 3) | (rotation + 4)).rotationBegin;
112 }
113 else
114 {
115 return World::TrackData::getUnkTrack((trackId << 3) | rotation).rotationBegin;
116 }
117 }
118
119 static uint8_t getSignalHeightOffset(const bool isRight, const uint8_t trackId)
120 {

Callers 1

paintSignalSideFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected