From ac31a3ffe8a5c15c1c314e532b1c3fa2ab5ad126 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Wed, 11 Feb 2004 05:38:15 +0000 Subject: Ignore initial setting of VAR_NOSUBTITLES svn-id: r12821 --- scumm/script.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scumm') diff --git a/scumm/script.cpp b/scumm/script.cpp index 5c329c31ba..2e929f368f 100644 --- a/scumm/script.cpp +++ b/scumm/script.cpp @@ -551,7 +551,10 @@ void ScummEngine::writeVar(uint var, int value) { // stay in sync with loom cd subtitle var if ((_gameId == GID_LOOM256 || _features & GF_HUMONGOUS) && var == VAR_NOSUBTITLES) { assert(value == 0 || value == 1); - ConfMan.set("subtitles", (value == 0)); + if ((_features & GF_HUMONGOUS) && vm.slot[_currentScript].number == 1) + value = !ConfMan.getBool("subtitles"); + else + ConfMan.set("subtitles", (value == 0)); } if ((_varwatch == (int)var) || (_varwatch == 0)) { -- cgit v1.2.3