1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-01-26 00:47:00 +00:00

a single function clearAnimations

This commit is contained in:
Zeno Rogue 2018-01-13 19:20:46 +01:00
parent cb49f21824
commit 0f13eae87d

View File

@ -5615,13 +5615,17 @@ void restartGraph() {
} }
} }
void clearAnimations() {
for(int i=0; i<ANIMLAYERS; i++) animations[i].clear();
flashes.clear();
fallanims.clear();
}
auto graphcm = addHook(clearmemory, 0, [] () { auto graphcm = addHook(clearmemory, 0, [] () {
DEBB(DF_INIT, (debugfile,"clear graph memory\n")); DEBB(DF_INIT, (debugfile,"clear graph memory\n"));
mouseover = centerover.c = lmouseover = NULL; mouseover = centerover.c = lmouseover = NULL;
for(int i=0; i<ANIMLAYERS; i++) animations[i].clear();
gmatrix.clear(); gmatrix0.clear(); gmatrix.clear(); gmatrix0.clear();
flashes.clear(); clearAnimations();
fallanims.clear();
}); });
void resetGeometry() { void resetGeometry() {