diff options
Diffstat (limited to 'engines/agos/script_s2.cpp')
-rw-r--r-- | engines/agos/script_s2.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/engines/agos/script_s2.cpp b/engines/agos/script_s2.cpp index b185616e6b..f5bde3f506 100644 --- a/engines/agos/script_s2.cpp +++ b/engines/agos/script_s2.cpp @@ -241,4 +241,25 @@ void AGOSEngine::os2_waitMark() { waitForMark(i); } +void AGOSEngine::waitForMark(uint i) { + _exitCutscene = false; + while (!(_marks & (1 << i))) { + if (_exitCutscene) { + if (getGameType() == GType_PP) { + if (_picture8600) + break; + } else { + if (getBitFlag(9)) { + endCutscene(); + break; + } + } + } else { + processSpecialKeys(); + } + + delay(10); + } +} + } // End of namespace AGOS |