summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorRay <[email protected]>2023-10-27 00:50:02 +0200
committerRay <[email protected]>2023-10-27 00:50:02 +0200
commit98fcbe3fe2bc2f6a20f8c2415251e9164af8661f (patch)
tree2edfb086c759c49112711f0f191848e23220361a /examples
parent654b4e62579aea3dd7dc6ae0018271e2df1c2b55 (diff)
downloadraylib-98fcbe3fe2bc2f6a20f8c2415251e9164af8661f.tar.gz
raylib-98fcbe3fe2bc2f6a20f8c2415251e9164af8661f.zip
Update core_automation_events.c
Diffstat (limited to 'examples')
-rw-r--r--examples/core/core_automation_events.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/core/core_automation_events.c b/examples/core/core_automation_events.c
index c35ce485..adea0e88 100644
--- a/examples/core/core_automation_events.c
+++ b/examples/core/core_automation_events.c
@@ -241,7 +241,8 @@ int main(void)
if (eventPlaying)
{
- if (playFrameCounter >= aelist.events[currentPlayFrame].frame)
+ // NOTE: Multiple events could be executed in a single frame
+ while (playFrameCounter == aelist.events[currentPlayFrame].frame)
{
PlayAutomationEvent(aelist.events[currentPlayFrame]);
currentPlayFrame++;