[Scummvm-git-logs] scummvm master -> 5cc7ddd2406eede4e20d11378eb34792f58d9dc7
bluegr
noreply at scummvm.org
Wed Nov 13 07:48:48 UTC 2024
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
5cc7ddd240 AGI: Process events while executing commands
Commit: 5cc7ddd2406eede4e20d11378eb34792f58d9dc7
https://github.com/scummvm/scummvm/commit/5cc7ddd2406eede4e20d11378eb34792f58d9dc7
Author: Miro Kropacek (miro.kropacek at gmail.com)
Date: 2024-11-13T09:48:44+02:00
Commit Message:
AGI: Process events while executing commands
This has a direct effect in e.g. Police Quest Apple IIGS demo where the
script checks the state of MIDI playback. This works fine as long as the
playback is executed in another thread but on platforms which depend on
regular pollEvent() events it leads to an infinite loop within
AgiEngine::runLogic().
Changed paths:
engines/agi/op_cmd.cpp
diff --git a/engines/agi/op_cmd.cpp b/engines/agi/op_cmd.cpp
index d403d771288..d3cd6726493 100644
--- a/engines/agi/op_cmd.cpp
+++ b/engines/agi/op_cmd.cpp
@@ -2357,6 +2357,8 @@ int AgiEngine::runLogic(int16 logicNr) {
_game._curLogic->cIP = _game._curLogic->sIP;
while (state->_curLogic->cIP < _game.logics[logicNr].size && !(shouldQuit() || _restartGame)) {
+ processScummVMEvents();
+
// TODO: old code, needs to be adjusted
#if 0
if (_debug.enabled) {
More information about the Scummvm-git-logs
mailing list