From 8a5705132d236f9bce49a420ddfff94157eabcb5 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 16 Aug 2010 19:58:01 +0000 Subject: 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 --- engines/scumm/script_v4.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engines/scumm/script_v4.cpp') 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() { -- cgit v1.2.3