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

Function MapClearAllElements

src/openrct2/world/Map.cpp:1836–1845  ·  view source on GitHub ↗

Clears all map elements, to be used before generating a new map */

Source from the content-addressed store, hash-verified

1834
1835 /* Clears all map elements, to be used before generating a new map */
1836 void MapClearAllElements()
1837 {
1838 for (int32_t y = 0; y < kMaximumMapSizeBig; y += kCoordsXYStep)
1839 {
1840 for (int32_t x = 0; x < kMaximumMapSizeBig; x += kCoordsXYStep)
1841 {
1842 ClearElementsAt({ x, y });
1843 }
1844 }
1845 }
1846
1847 /**
1848 * Gets the track element at x, y, z.

Callers 1

resetSurfacesFunction · 0.85

Calls 1

ClearElementsAtFunction · 0.85

Tested by

no test coverage detected