mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-08 20:07:11 +00:00
AGS: Engine: corrected some of the key evt queue exceeding loops
Part of upstream 66738a0c4550ec349dcf45ec39030b56332e1ea8
This commit is contained in:
parent
ccbe6f5419
commit
1d4d6d501e
@ -347,13 +347,16 @@ bool InventoryScreen::Run() {
|
||||
sys_evt_process_pending();
|
||||
|
||||
// Handle all the buffered key events
|
||||
bool do_break = false;
|
||||
while (ags_keyevent_ready()) {
|
||||
KeyInput ki;
|
||||
if (run_service_key_controls(ki) && !_GP(play).IsIgnoringInput()) {
|
||||
ags_clear_input_buffer();
|
||||
return false; // end inventory screen loop
|
||||
do_break = true; // end inventory screen loop
|
||||
}
|
||||
}
|
||||
if (do_break)
|
||||
return false;
|
||||
|
||||
update_audio_system_on_game_loop();
|
||||
refresh_gui_screen();
|
||||
|
Loading…
x
Reference in New Issue
Block a user