a single function clearAnimations

This commit is contained in:
Zeno Rogue 2018-01-13 19:20:46 +01:00
parent cb49f21824
commit 0f13eae87d
1 changed files with 7 additions and 3 deletions

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, [] () {
DEBB(DF_INIT, (debugfile,"clear graph memory\n"));
mouseover = centerover.c = lmouseover = NULL;
for(int i=0; i<ANIMLAYERS; i++) animations[i].clear();
gmatrix.clear(); gmatrix0.clear();
flashes.clear();
fallanims.clear();
clearAnimations();
});
void resetGeometry() {