Override default initial setting of subtitles enabled in loomcd
svn-id: r9946
This commit is contained in:
parent
82fea49671
commit
b43a6f6496
1 changed files with 8 additions and 2 deletions
|
@ -544,8 +544,14 @@ void Scumm::writeVar(uint var, int value) {
|
|||
_scummVars[var] = value;
|
||||
|
||||
// stay in sync with loom cd subtitle var
|
||||
if (_gameId == GID_LOOM256 && var == VAR_NOSUBTITLES && (value == 0 || value == 1))
|
||||
_noSubtitles = (value != 0);
|
||||
if (_gameId == GID_LOOM256 && var == VAR_NOSUBTITLES && (value == 0 || value == 1)) {
|
||||
// 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 (vm.slot[_currentScript].number < 100)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue