aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v5.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2005-04-07 21:13:01 +0000
committerEugene Sandulenko2005-04-07 21:13:01 +0000
commitba3077ed0e06f39dd27353f0e3a6c2c9ba05791d (patch)
tree359be431e5e03de71164719a47da1ac38fc6d305 /scumm/script_v5.cpp
parentbac8f7a90c8f9fc5a92623a877c25062edc81607 (diff)
downloadscummvm-rg350-ba3077ed0e06f39dd27353f0e3a6c2c9ba05791d.tar.gz
scummvm-rg350-ba3077ed0e06f39dd27353f0e3a6c2c9ba05791d.tar.bz2
scummvm-rg350-ba3077ed0e06f39dd27353f0e3a6c2c9ba05791d.zip
Patch from Quietust:
1. properly handle costume colors in dark rooms (verified against disasm) 2. optimize NES audio generation a little bit - instead of calling a function ~80 times to get one audio sample, it calls it once and just loops ~80 times internally 3. NES audio now obeys the volume control 4. in MM NES, o2_setObjPreposition is a no-op 5. o2_lights uses new-style light values (i.e. bitfields) in MM NES 6. o2_delay, use ssPaused identifier rather than a literal '1' 7. in MM NES, o5_saveLoadGame only explicitly checks for type '1' (load), defaulting to save for any other value svn-id: r17443
Diffstat (limited to 'scumm/script_v5.cpp')
-rw-r--r--scumm/script_v5.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/script_v5.cpp b/scumm/script_v5.cpp
index 57fc2bfefa..513f74c1a8 100644
--- a/scumm/script_v5.cpp
+++ b/scumm/script_v5.cpp
@@ -1136,7 +1136,7 @@ void ScummEngine_v5::o5_saveLoadGame() {
slot = 1;
if (a == 1)
_opcode = 0x40;
- else if (a == 2)
+ else if ((a == 2) || (_features & GF_NES))
_opcode = 0x80;
} else {
_opcode = a & 0xE0;