Override default initial setting of subtitles enabled in loomcd

svn-id: r9946
This commit is contained in:
Travis Howell 2003-09-01 01:50:07 +00:00
parent 82fea49671
commit b43a6f6496

View File

@ -544,8 +544,14 @@ void Scumm::writeVar(uint var, int value) {
_scummVars[var] = value; _scummVars[var] = value;
// stay in sync with loom cd subtitle var // stay in sync with loom cd subtitle var
if (_gameId == GID_LOOM256 && var == VAR_NOSUBTITLES && (value == 0 || value == 1)) if (_gameId == GID_LOOM256 && var == VAR_NOSUBTITLES && (value == 0 || value == 1)) {
_noSubtitles = (value != 0); // Override default initial setting of subtitles enabled
if (vm.slot[_currentScript].number == 1)
value = _noSubtitles;
else
_noSubtitles = (value != 0);
}
if ((_varwatch == (int)var) || (_varwatch == 0)) { if ((_varwatch == (int)var) || (_varwatch == 0)) {
if (vm.slot[_currentScript].number < 100) if (vm.slot[_currentScript].number < 100)