From ba3077ed0e06f39dd27353f0e3a6c2c9ba05791d Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Thu, 7 Apr 2005 21:13:01 +0000 Subject: 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 --- scumm/script_v5.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scumm/script_v5.cpp') 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; -- cgit v1.2.3