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

Function markElementAsFree

src/OpenLoco/src/Map/TileManager.cpp:145–152  ·  view source on GitHub ↗

Note: Must be past the last tile flag

Source from the content-addressed store, hash-verified

143
144 // Note: Must be past the last tile flag
145 static void markElementAsFree(TileElement& element)
146 {
147 element.setBaseZ(255);
148 if (std::distance(&*_elements.begin(), element.next()) == _elementsEnd)
149 {
150 _elementsEnd--;
151 }
152 }
153
154 // 0x00461760
155 void removeElement(TileElement& element)

Callers 1

removeElementFunction · 0.85

Calls 3

setBaseZMethod · 0.80
beginMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected