| 693 | } |
| 694 | |
| 695 | void delete_all_clouds() |
| 696 | { |
| 697 | // We can't iterate over env.cloud directly because delete_cloud |
| 698 | // will remove this cloud and invalidate our iterator. |
| 699 | vector<coord_def> cloud_locs; |
| 700 | for (auto& entry : env.cloud) |
| 701 | cloud_locs.push_back(entry.first); |
| 702 | |
| 703 | for (auto pos : cloud_locs) |
| 704 | delete_cloud(pos); |
| 705 | } |
| 706 | |
| 707 | // The current use of this function is for shifting in the abyss, so |
| 708 | // that clouds get moved along with the rest of the map. |
no test coverage detected