aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/inter.cpp
diff options
context:
space:
mode:
authorArnaud Boutonné2010-10-24 20:20:48 +0000
committerArnaud Boutonné2010-10-24 20:20:48 +0000
commit25e1af837a94f6b1a9dcdcdb69abb21167a7f6ce (patch)
tree98103618faccccae34c521c6d2af653b45411f81 /engines/gob/inter.cpp
parent0db700a3dced67c607c9e9719ea22347612ead40 (diff)
downloadscummvm-rg350-25e1af837a94f6b1a9dcdcdb69abb21167a7f6ce.tar.gz
scummvm-rg350-25e1af837a94f6b1a9dcdcdb69abb21167a7f6ce.tar.bz2
scummvm-rg350-25e1af837a94f6b1a9dcdcdb69abb21167a7f6ce.zip
GOB: un-ban and fix a somehow corrupted version of Fascination
(This version has been found on original floppies) svn-id: r53772
Diffstat (limited to 'engines/gob/inter.cpp')
-rw-r--r--engines/gob/inter.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/gob/inter.cpp b/engines/gob/inter.cpp
index f6e6d41100..c86d3d2642 100644
--- a/engines/gob/inter.cpp
+++ b/engines/gob/inter.cpp
@@ -306,6 +306,21 @@ void Inter::funcBlock(int16 retFlag) {
} // End of workaround
cmd = _vm->_game->_script->readByte();
+
+ // WORKAROUND:
+ // A VGA version has some broken code in its scripts, this workaround skips the corrupted parts.
+ if (_vm->getGameType() == kGameTypeFascination) {
+ int addr = _vm->_game->_script->pos();
+ if ((startaddr == 0x212D) && (addr == 0x290E) && (cmd == 0x90) && !scumm_stricmp(_vm->_game->_curTotFile, "INTRO1.tot")) {
+ _vm->_game->_script->skip(2);
+ cmd = _vm->_game->_script->readByte();
+ }
+ if ((startaddr == 0x207D) && (addr == 0x22CE) && (cmd == 0x90) && !scumm_stricmp(_vm->_game->_curTotFile, "INTRO2.tot")) {
+ _vm->_game->_script->skip(2);
+ cmd = _vm->_game->_script->readByte();
+ }
+ }
+
if ((cmd >> 4) >= 12) {
cmd2 = 16 - (cmd >> 4);
cmd &= 0xF;