mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2024-12-13 04:27:59 +01:00
fixup for last commit (pause, resume and draw events were always sent as draw)
This commit is contained in:
parent
4ec5686aac
commit
533d53e535
1 changed files with 2 additions and 2 deletions
|
@ -131,7 +131,7 @@ void Propagate(enum TM_ActionState action) {
|
||||||
if (!game) return;
|
if (!game) return;
|
||||||
if (queue) {
|
if (queue) {
|
||||||
if ((*queue->function) && (queue->active)) {
|
if ((*queue->function) && (queue->active)) {
|
||||||
(*queue->function)(game, queue, TM_ACTIONSTATE_DRAW);
|
(*queue->function)(game, queue, action);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* process all elements from background marked as active */
|
/* process all elements from background marked as active */
|
||||||
|
@ -139,7 +139,7 @@ void Propagate(enum TM_ActionState action) {
|
||||||
while (pom!=NULL) {
|
while (pom!=NULL) {
|
||||||
if (pom->active) {
|
if (pom->active) {
|
||||||
if (*pom->function) {
|
if (*pom->function) {
|
||||||
(*pom->function)(game, pom, TM_ACTIONSTATE_DRAW);
|
(*pom->function)(game, pom, action);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pom = pom->next;
|
pom = pom->next;
|
||||||
|
|
Loading…
Reference in a new issue