fixup for last commit (pause, resume and draw events were always sent as draw)

This commit is contained in:
Sebastian Krzyszkowiak 2012-09-26 23:34:00 +02:00
parent 4ec5686aac
commit 533d53e535

View file

@ -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;