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

Method resetMarkerFlags

src/OpenLoco/src/Map/MapGenerator/HeightMap.cpp:8–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6 constexpr uint8_t kHeightmapMarkedFlag = (1 << 7);
7
8 void HeightMap::resetMarkerFlags()
9 {
10 std::for_each_n(data(), size(), [](uint8_t& value) { value &= ~kHeightmapMarkedFlag; });
11 }
12
13 uint8_t HeightMap::getHeight(TilePos2 pos) const
14 {

Calls

no outgoing calls

Tested by

no test coverage detected