diff options
author | Vincent Hamm | 2002-02-14 20:47:47 +0000 |
---|---|---|
committer | Vincent Hamm | 2002-02-14 20:47:47 +0000 |
commit | cca0057a88f66b623ffd9825b805013272335582 (patch) | |
tree | 5cae5579e73ea53b6abbd1da9911d73dd039bce2 | |
parent | 176f476c47775565f0a87b5f97a2f80520d9570b (diff) | |
download | scummvm-rg350-cca0057a88f66b623ffd9825b805013272335582.tar.gz scummvm-rg350-cca0057a88f66b623ffd9825b805013272335582.tar.bz2 scummvm-rg350-cca0057a88f66b623ffd9825b805013272335582.zip |
Fixed a Zak256 resource bug...
svn-id: r3583
-rw-r--r-- | script_v1.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/script_v1.cpp b/script_v1.cpp index 2b59abed4a..c571d22b37 100644 --- a/script_v1.cpp +++ b/script_v1.cpp @@ -1294,6 +1294,8 @@ void Scumm::o5_resourceRoutines() { _opcode = fetchScriptByte(); if (_opcode != 17) res = getVarOrDirectByte(0x80); + if(_gameId == GID_ZAK256) /*FIXME: find a better way to implement this */ + _opcode&=0x3F; switch(_opcode&0x1F) { case 1: /* load script */ ensureResourceLoaded(rtScript, res); @@ -1305,7 +1307,10 @@ void Scumm::o5_resourceRoutines() { ensureResourceLoaded(rtCostume, res); break; case 4: /* load room */ - ensureResourceLoaded(rtRoom, res); + if(_gameId == GID_ZAK256) + ensureResourceLoaded(rtScript, res & 0x7F); /*FIXME: missing stuff...*/ + else + ensureResourceLoaded(rtRoom, res); break; case 5: /* nuke script */ setResourceCounter(rtScript, res, 0x7F); |