diff options
| author | Ray <[email protected]> | 2023-10-27 00:50:02 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2023-10-27 00:50:02 +0200 |
| commit | 98fcbe3fe2bc2f6a20f8c2415251e9164af8661f (patch) | |
| tree | 2edfb086c759c49112711f0f191848e23220361a | |
| parent | 654b4e62579aea3dd7dc6ae0018271e2df1c2b55 (diff) | |
| download | raylib-98fcbe3fe2bc2f6a20f8c2415251e9164af8661f.tar.gz raylib-98fcbe3fe2bc2f6a20f8c2415251e9164af8661f.zip | |
Update core_automation_events.c
| -rw-r--r-- | examples/core/core_automation_events.c | 3 |
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++; |
