mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-16 13:24:08 +00:00
fixed a bug with Cellular Automata crashing after map reloaded
This commit is contained in:
parent
c7c086dee9
commit
5575608b76
@ -3544,6 +3544,7 @@ auto ccm = addHook(hooks_clearmemory, 0, [] () {
|
|||||||
prairie::beaststogen.clear();
|
prairie::beaststogen.clear();
|
||||||
#endif
|
#endif
|
||||||
mirror::clearcache();
|
mirror::clearcache();
|
||||||
|
ca::changed.clear();
|
||||||
}) +
|
}) +
|
||||||
addHook(hooks_gamedata, 0, [] (gamedata* gd) {
|
addHook(hooks_gamedata, 0, [] (gamedata* gd) {
|
||||||
gd->store(heat::offscreen_heat);
|
gd->store(heat::offscreen_heat);
|
||||||
@ -3563,6 +3564,7 @@ auto ccm = addHook(hooks_clearmemory, 0, [] () {
|
|||||||
gd->store(elec::lightningfast);
|
gd->store(elec::lightningfast);
|
||||||
gd->store(elec::havethunder);
|
gd->store(elec::havethunder);
|
||||||
gd->store(elec::afterOrb);
|
gd->store(elec::afterOrb);
|
||||||
|
gd->store(ca::changed);
|
||||||
}) +
|
}) +
|
||||||
addHook(hooks_removecells, 0, [] () {
|
addHook(hooks_removecells, 0, [] () {
|
||||||
for(cell *c: removed_cells) clearing::score.erase(c);
|
for(cell *c: removed_cells) clearing::score.erase(c);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user