aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2008-01-01 16:26:04 +0000
committerEugene Sandulenko2008-01-01 16:26:04 +0000
commit308b02f4ca5d179aab3cedd8ad9bd97c0685be73 (patch)
tree9fba7434bc9e8198b3632db7728a6a6ccd8c47b4
parente5e53a0017ed821099d72a2548d9b9cc717efbbe (diff)
downloadscummvm-rg350-308b02f4ca5d179aab3cedd8ad9bd97c0685be73.tar.gz
scummvm-rg350-308b02f4ca5d179aab3cedd8ad9bd97c0685be73.tar.bz2
scummvm-rg350-308b02f4ca5d179aab3cedd8ad9bd97c0685be73.zip
Fix for bug #1766072: MANIACNES: Music Doesn't Start On Load Game
svn-id: r30122
-rw-r--r--engines/scumm/saveload.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/scumm/saveload.cpp b/engines/scumm/saveload.cpp
index 9e979cbab9..07b4141620 100644
--- a/engines/scumm/saveload.cpp
+++ b/engines/scumm/saveload.cpp
@@ -389,6 +389,15 @@ bool ScummEngine::loadState(int slot, bool compat) {
_sound->pauseSounds(false);
+ // WORKAROUND: Original save/load script ran this script
+ // after game load, and o2_loadRoomWithEgo() does as well
+ // this script starts character-dependent music
+ //
+ // Fixes bug #1766072: MANIACNES: Music Doesn't Start On Load Game
+ if (_game.platform == Common::kPlatformNES) {
+ runScript(5, 0, 0, 0);
+ }
+
return true;
}