MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / resetMapBlocks

Method resetMapBlocks

src/Ruleset/RuleTerrain.cpp:201–207  ·  view source on GitHub ↗

* Resets the remaining uses of each mapblock. */

Source from the content-addressed store, hash-verified

199 * Resets the remaining uses of each mapblock.
200 */
201void RuleTerrain::resetMapBlocks()
202{
203 for (std::vector<MapBlock*>::const_iterator i = _mapBlocks.begin(); i != _mapBlocks.end(); ++i)
204 {
205 (*i)->reset();
206 }
207}
208
209/**
210 * Gets the array of globe texture IDs this terrain is loaded on.

Callers 1

generateMapMethod · 0.80

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected