Thanks for reporting this. Looks like I messed this up. I think this patch will 
fix it:

diff --git a/src/timernu.c b/src/timernu.c
index 9179969..66f1c33 100644
--- a/src/timernu.c
+++ b/src/timernu.c
@@ -104,6 +104,7 @@ static void timer_thread_proc(_AL_THREAD *self, void 
*unused)
       al_lock_mutex(timers_mutex);
       while (_al_vector_size(&active_timers) == 0 && !destroy_thread) {
          al_wait_cond(timer_cond, timers_mutex);
+         old_time = al_get_time();
       }
       al_unlock_mutex(timers_mutex);


Can you try this in the PacMan game? Ex_timer_pause won’t work unless you build 
it as a console app (the examples are now built as Windows applications), but I 
confirmed it works on Linux.



From: Edgar Reynaldo
_______________________________________________
Allegro-developers mailing list
Allegro-developers@gna.org
https://mail.gna.org/listinfo/allegro-developers

Reply via email to