mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-25 18:24:27 +00:00
some work on the savemem feature
This commit is contained in:
1 parent
2f9e5186f6
commit
22d3d2590f
8 files changed
+84
-6
No files matched your search
+9
-1
@@ -1224,5 +1224,13 @@ auto cgm = addHook(clearmemory, 40, [] () {
|
||||
buggycells.clear();
|
||||
crush_next.clear();
|
||||
crush_now.clear();
|
||||
});
|
||||
}) +
|
||||
addHook(hooks_removecells, 0, [] () {
|
||||
eliminate_if(crush_next, is_cell_removed);
|
||||
eliminate_if(crush_now, is_cell_removed);
|
||||
eliminate_if(buggycells, is_cell_removed);
|
||||
eliminate_if(butterflies, [] (pair<cell*,int>& p) { return is_cell_removed(p.first); });
|
||||
for(int i=0; i<SHSIZE; i++) for(int p=0; p<MAXPLAYER; p++)
|
||||
set_if_removed(shpos[p][i], NULL);
|
||||
});;
|
||||
|
||||
Reference in new issue
Block a user