AGOS: SIMON2: Fix pirate dialogue freeze

(cherry picked from commit eb851041ed)
This commit is contained in:
BLooperZ 2022-09-30 01:29:00 +03:00 committed by Donovan Watteau
parent 85ed671a5c
commit 125d28fdef
2 changed files with 3 additions and 2 deletions

View file

@ -1066,7 +1066,7 @@ void AGOSEngine::stopAnimate(uint16 a) {
void AGOSEngine::waitForSync(uint a) {
const uint maxCount = (getGameType() == GType_SIMON1) ? 1000 : 2500;
if (getGameType() == GType_SIMON1 && (getFeatures() & GF_TALKIE)) {
if ((getGameType() == GType_SIMON1 || getGameType() == GType_SIMON2) && (getFeatures() & GF_TALKIE)) {
if (a != 200) {
uint16 tmp = _lastVgaWaitFor;
_lastVgaWaitFor = 0;

View file

@ -801,6 +801,7 @@ void AGOSEngine::vc15_sync() {
}
}
if (id != 200)
_lastVgaWaitFor = id;
/* clear a wait event */
if (id == _vgaWaitFor)