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

Function getSignalHeightOffset

src/OpenLoco/src/Paint/PaintSignal.cpp:119–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117 }
118
119 static uint8_t getSignalHeightOffset(const bool isRight, const uint8_t trackId)
120 {
121 if (isRight)
122 {
123 return World::TrackData::getTrackMiscData(trackId).signalHeightOffsetRight;
124 }
125 else
126 {
127 return World::TrackData::getTrackMiscData(trackId).signalHeightOffsetLeft;
128 }
129 }
130
131 static uint32_t getOneWayArrowImage(const bool isRight, const uint8_t trackId, const uint8_t rotation)
132 {

Callers 1

paintSignalSideFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected