aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/script_s2.cpp
diff options
context:
space:
mode:
authorTravis Howell2006-10-27 11:04:05 +0000
committerTravis Howell2006-10-27 11:04:05 +0000
commit7d71b6d1090316cfc34e3165d41a568c711871e4 (patch)
treeec400f1436ae1bbd52623938dbc01d0a0a5ccb72 /engines/agos/script_s2.cpp
parent9bab66a53a2c6403a170091500bf810c94fe38a4 (diff)
downloadscummvm-rg350-7d71b6d1090316cfc34e3165d41a568c711871e4.tar.gz
scummvm-rg350-7d71b6d1090316cfc34e3165d41a568c711871e4.tar.bz2
scummvm-rg350-7d71b6d1090316cfc34e3165d41a568c711871e4.zip
Cleanup
svn-id: r24527
Diffstat (limited to 'engines/agos/script_s2.cpp')
-rw-r--r--engines/agos/script_s2.cpp21
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