1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-20 15:40:26 +00:00

savemem:: more aggresive adj_memo clear

This commit is contained in:
Zeno Rogue 2022-07-17 12:43:20 +02:00
parent c5650e4e46
commit 894ee3ad8e

View File

@ -3508,7 +3508,7 @@ auto ccm = addHook(hooks_clearmemory, 0, [] () {
}) +
addHook(hooks_removecells, 0, [] () {
for(cell *c: removed_cells) clearing::score.erase(c);
for(auto& am: adj_memo) for(cell *c: removed_cells) am.erase(c);
for(auto& am: adj_memo) am.clear();
eliminate_if(heat::offscreen_heat, is_cell_removed);
eliminate_if(heat::offscreen_fire, is_cell_removed);
eliminate_if(princess::infos, [] (princess::info*& i) {