aboutsummaryrefslogtreecommitdiff
path: root/engines/gob
diff options
context:
space:
mode:
authorSven Hesse2007-06-25 16:16:34 +0000
committerSven Hesse2007-06-25 16:16:34 +0000
commitbfa84a05bfe9cf981cbc8e2bbb46ea5a8785f051 (patch)
treec5e75ce989e00e927a8670acebf6909e16ff7773 /engines/gob
parentdb529f9c8f577f05118d8955092f8236b94b8635 (diff)
downloadscummvm-rg350-bfa84a05bfe9cf981cbc8e2bbb46ea5a8785f051.tar.gz
scummvm-rg350-bfa84a05bfe9cf981cbc8e2bbb46ea5a8785f051.tar.bz2
scummvm-rg350-bfa84a05bfe9cf981cbc8e2bbb46ea5a8785f051.zip
Added a workaround for bug #1726130 ("WEEN: Long delay in the intro")
svn-id: r27709
Diffstat (limited to 'engines/gob')
-rw-r--r--engines/gob/inter_v1.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/gob/inter_v1.cpp b/engines/gob/inter_v1.cpp
index fcf825b4c3..4738669974 100644
--- a/engines/gob/inter_v1.cpp
+++ b/engines/gob/inter_v1.cpp
@@ -1647,6 +1647,12 @@ bool Inter_v1::o1_keyFunc(OpFuncParams &params) {
lastCalled = now;
_noBusyWait = false;
+ // WORKAROUND: Ween busy-waits in the intro for a counter to become 5000.
+ // We deliberately slow down busy-waiting, so we shorten the counting, too.
+ if (((_vm->_global->_inter_execPtr - _vm->_game->_totFileData) == 729) &&
+ (VAR(59) < 4000) && !scumm_stricmp(_vm->_game->_curTotFile, "intro5.tot"))
+ WRITE_VAR(59, 4000);
+
switch (cmd) {
case 0:
_vm->_draw->_showCursor &= ~2;