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

Function getHeightMarkerImage

src/OpenLoco/src/Paint/PaintTileDecorations.cpp:870–874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

868 }
869
870 uint32_t getHeightMarkerImage(const coord_t height)
871 {
872 const auto offset = height / World::kMicroZStep - getGameState().seaLevel + 128;
873 return kHeightMarkerImages[Config::get().heightMarkerOffset][offset];
874 }
875}

Callers 3

paintSurfaceFunction · 0.85
paintTrackFunction · 0.85
paintRoadFunction · 0.85

Calls 1

getFunction · 0.50

Tested by

no test coverage detected