From 533d53e5353172c3d2309a0d11ea7fdf4637f72c Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Wed, 26 Sep 2012 23:34:00 +0200 Subject: [PATCH] fixup for last commit (pause, resume and draw events were always sent as draw) --- src/timeline.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/timeline.c b/src/timeline.c index d8b278e..3793b90 100644 --- a/src/timeline.c +++ b/src/timeline.c @@ -131,7 +131,7 @@ void Propagate(enum TM_ActionState action) { if (!game) return; if (queue) { 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 */ @@ -139,7 +139,7 @@ void Propagate(enum TM_ActionState action) { while (pom!=NULL) { if (pom->active) { if (*pom->function) { - (*pom->function)(game, pom, TM_ACTIONSTATE_DRAW); + (*pom->function)(game, pom, action); } } pom = pom->next;