Skip to content

Commit 25a6bf2

Browse files
committed
Prevent accidental skip cutscene at loading screen
os_ignore_events() was buffering events instead of ignoring them. This caused any skip-cutscene key to be buffered during the loading screen, which would later be handled during the cutscene. From the player's perspective, there was no cutscene. This changes os_ignore_events() to ignore events. Fixes #4419.
1 parent 1930943 commit 25a6bf2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

code/osapi/osapi.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -716,8 +716,7 @@ namespace os
716716
void os_ignore_events() {
717717
SDL_Event event;
718718
while (SDL_PollEvent(&event)) {
719-
// Add event to buffer
720-
buffered_events.push_back(event);
719+
// ignore event
721720
}
722721
}
723722

0 commit comments

Comments
 (0)