1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-04 04:50:22 +00:00
QB64-PE/tests/compile_tests/timer
Matthew Kilgore d4ed371681 Stopped timers don't trigger on TIMER ON
If a timer expires while stopped, it should trigger when TIMER ON is
run. Instead, on QB64 it triggers randomly after the TIMER ON happens.

The basic issue is that `qbevent` needs to be set to trigger the timer,
but TIMER ON doesn't do that. The regular timer logic that does that
already set it when the timer expired while sleeping, so it won't set it
again. The simplest solution is to just alway set qbevent = 1 when TIMER
ON is done. It's slightly less efficent but doesn't hurt to set it even
when there are no timers that expired.

Fixes: #293
2023-02-12 21:27:25 -05:00
..
sleep_ends_early.bas Using Sleep with Console programs does not trigger timers 2023-02-12 21:27:25 -05:00
sleep_ends_early.output Using Sleep with Console programs does not trigger timers 2023-02-12 21:27:25 -05:00
timer_delayed_run.bas Stopped timers don't trigger on TIMER ON 2023-02-12 21:27:25 -05:00
timer_delayed_run.output Stopped timers don't trigger on TIMER ON 2023-02-12 21:27:25 -05:00
timer_first_run.bas Stopped timers don't trigger on TIMER ON 2023-02-12 21:27:25 -05:00
timer_first_run.output Stopped timers don't trigger on TIMER ON 2023-02-12 21:27:25 -05:00
timer_stop.bas Stopped timers don't trigger on TIMER ON 2023-02-12 21:27:25 -05:00
timer_stop.output Stopped timers don't trigger on TIMER ON 2023-02-12 21:27:25 -05:00