mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-12 02:10:34 +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, [] () {
|
||||
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() {
|
||||
|
Loading…
Reference in New Issue
Block a user