1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-19 19:54:47 +00:00
This commit is contained in:
Zeno Rogue 2021-08-24 12:20:52 +02:00
commit 510c28227b

View File

@ -1706,5 +1706,8 @@ addHook(hooks_removecells, 0, [] () {
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[i][p], NULL);
vector<cell*> to_remove;
for(auto p: rosemap) if(is_cell_removed(p.first)) to_remove.push_back(p.first);
for(auto r: to_remove) rosemap.erase(r);
});
}