MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / GetHeightMarkerOffset

Function GetHeightMarkerOffset

src/openrct2/interface/Viewport.cpp:1960–1972  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1958 }
1959
1960 int32_t GetHeightMarkerOffset()
1961 {
1962 // Height labels in units
1963 if (Config::Get().general.showHeightAsUnits)
1964 return 0;
1965
1966 // Height labels in feet
1967 if (Config::Get().general.measurementFormat == MeasurementFormat::imperial)
1968 return 1 * 256;
1969
1970 // Height labels in metres
1971 return 2 * 256;
1972 }
1973
1974 void ViewportSetSavedView()
1975 {

Callers 4

PaintHeightMarkersFunction · 0.85
PaintHeightMarkersFunction · 0.85
PaintSurfaceFunction · 0.85
PaintTrackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected