mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-28 12:46:56 +00:00
Override default initial setting of subtitles enabled in loomcd
svn-id: r9946
This commit is contained in:
parent
82fea49671
commit
b43a6f6496
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user