aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/vars.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/scumm/vars.cpp')
-rw-r--r--engines/scumm/vars.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/scumm/vars.cpp b/engines/scumm/vars.cpp
index 7e753199a9..cacfd0101b 100644
--- a/engines/scumm/vars.cpp
+++ b/engines/scumm/vars.cpp
@@ -296,6 +296,7 @@ void ScummEngine_v72he::setupScummVars() {
VAR_POLYGONS_ONLY = 76;
if (_game.heversion <= 74) {
+ VAR_SOUND_ENABLED = 54;
VAR_NUM_SOUND_CHANNELS = 56;
}
@@ -654,6 +655,11 @@ void ScummEngine_v72he::resetScummVars() {
VAR(VAR_NUM_CHARSETS) = _numCharsets - 1;
VAR(VAR_NUM_GLOBAL_OBJS) = _numGlobalObjects - 1;
+ if (_game.heversion <= 74) {
+ // Songs are disabled, if sound is disabled.
+ VAR(VAR_SOUND_ENABLED) = 1;
+ }
+
if (_game.heversion == 74) {
// Uses different values, compared to later HE80+ games.
if (_game.platform == Common::kPlatformMacintosh) {