mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-08 06:06:43 +01:00
timeline: update queues during cleaning
...so destructors can safely do stuff like TM_AddAction (unless they make an infinite loop with that :P)
This commit is contained in:
parent
5725963778
commit
4652efd6a9
1 changed files with 2 additions and 2 deletions
|
@ -326,8 +326,8 @@ SYMBOL_EXPORT void TM_CleanQueue(struct Timeline* timeline) {
|
||||||
free(pom->name);
|
free(pom->name);
|
||||||
free(pom);
|
free(pom);
|
||||||
pom = tmp;
|
pom = tmp;
|
||||||
|
timeline->queue = pom;
|
||||||
}
|
}
|
||||||
timeline->queue = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SYMBOL_EXPORT void TM_CleanBackgroundQueue(struct Timeline* timeline) {
|
SYMBOL_EXPORT void TM_CleanBackgroundQueue(struct Timeline* timeline) {
|
||||||
|
@ -344,8 +344,8 @@ SYMBOL_EXPORT void TM_CleanBackgroundQueue(struct Timeline* timeline) {
|
||||||
free(pom->name);
|
free(pom->name);
|
||||||
free(pom);
|
free(pom);
|
||||||
pom = tmp;
|
pom = tmp;
|
||||||
|
timeline->background = pom;
|
||||||
}
|
}
|
||||||
timeline->background = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SYMBOL_INTERNAL void DrawQueue(struct Game *game, struct TM_Action* queue, int clipX, int clipY) {
|
SYMBOL_INTERNAL void DrawQueue(struct Game *game, struct TM_Action* queue, int clipX, int clipY) {
|
||||||
|
|
Loading…
Reference in a new issue