aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/script_v4.cpp
diff options
context:
space:
mode:
authorMax Horn2010-08-16 19:58:01 +0000
committerMax Horn2010-08-16 19:58:01 +0000
commit8a5705132d236f9bce49a420ddfff94157eabcb5 (patch)
tree8ea473045185fc2c115f8ade1c545e66e4bc06c3 /engines/scumm/script_v4.cpp
parent5602b2cf8127bb5dd9df23dd833e18070d60c568 (diff)
downloadscummvm-rg350-8a5705132d236f9bce49a420ddfff94157eabcb5.tar.gz
scummvm-rg350-8a5705132d236f9bce49a420ddfff94157eabcb5.tar.bz2
scummvm-rg350-8a5705132d236f9bce49a420ddfff94157eabcb5.zip
SCUMM: More finely differentiate opcode tables between v3, v4 and v5
This has been tested and verified as much as I can, but has a small risk of leading to (easily fixable) regressions. svn-id: r52130
Diffstat (limited to 'engines/scumm/script_v4.cpp')
-rw-r--r--engines/scumm/script_v4.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/scumm/script_v4.cpp b/engines/scumm/script_v4.cpp
index 01927b02e7..6dc3004432 100644
--- a/engines/scumm/script_v4.cpp
+++ b/engines/scumm/script_v4.cpp
@@ -60,6 +60,11 @@ void ScummEngine_v4::setupOpcodes() {
OPCODE(0x22, o4_saveLoadGame);
OPCODE(0xa2, o4_saveLoadGame);
+
+ // Disable some opcodes which are unused in v4.
+ _opcodes[0x3b].setProc(0, 0);
+ _opcodes[0x4c].setProc(0, 0);
+ _opcodes[0xbb].setProc(0, 0);
}
void ScummEngine_v4::o4_ifState() {