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

Method setSegmentsSupportHeight

src/OpenLoco/src/Paint/Paint.cpp:405–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403 }
404
405 void PaintSession::setSegmentsSupportHeight(const SegmentFlags segments, const uint16_t height, const uint8_t slope)
406 {
407 for (int32_t s = 0; s < 9; s++)
408 {
409 if ((segments & kSegmentOffsets[s]) != SegmentFlags::none)
410 {
411 setSegmentSupportHeight(s, height, slope);
412 }
413 }
414 }
415
416 void PaintSession::setSegmentSupportHeight(const uint8_t segment, const uint16_t height, const uint8_t slope)
417 {

Callers 6

paintBuildingFunction · 0.80
paintIndustryFunction · 0.80
paintAirportFunction · 0.80
paintDocksFunction · 0.80
paintTileElementsSetupFunction · 0.80
paintTileElementsEndLoopFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected