* Resets the remaining uses of each mapblock. */
| 199 | * Resets the remaining uses of each mapblock. |
| 200 | */ |
| 201 | void 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. |