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:
parent
cb49f21824
commit
0f13eae87d
10
graph.cpp
10
graph.cpp
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user