1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-10-31 19:36:16 +00:00

correctly remove Clearing score memory

This commit is contained in:
Zeno Rogue 2020-01-02 16:50:15 +01:00
parent b4b325e009
commit ddc3666fb4

View File

@ -3393,6 +3393,7 @@ auto ccm = addHook(clearmemory, 0, [] () {
gd->store(elec::afterOrb);
}) +
addHook(hooks_removecells, 0, [] () {
for(cell *c: removed_cells) clearing::score.erase(c);
eliminate_if(heat::offscreen_heat, is_cell_removed);
eliminate_if(heat::offscreen_fire, is_cell_removed);
eliminate_if(princess::infos, [] (princess::info*& i) {