Update talkspeed config setting, when set by game scripts
svn-id: r22854
This commit is contained in:
parent
93a91f9c6d
commit
fc26d9b413
2 changed files with 8 additions and 9 deletions
|
@ -618,14 +618,14 @@ void ScummEngine::writeVar(uint var, int value) {
|
||||||
|
|
||||||
if (var == VAR_CHARINC) {
|
if (var == VAR_CHARINC) {
|
||||||
if (ConfMan.hasKey("talkspeed")) {
|
if (ConfMan.hasKey("talkspeed")) {
|
||||||
VAR(VAR_CHARINC) = getTalkspeed();
|
value = getTalkspeed();
|
||||||
} else {
|
} else {
|
||||||
// Save the new talkspeed value to ConfMan
|
// Save the new talkspeed value to ConfMan
|
||||||
setTalkspeed(_defaultTalkDelay);
|
setTalkspeed(value);
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
|
||||||
_scummVars[var] = value;
|
_scummVars[var] = value;
|
||||||
}
|
|
||||||
|
|
||||||
if ((_varwatch == (int)var) || (_varwatch == 0)) {
|
if ((_varwatch == (int)var) || (_varwatch == 0)) {
|
||||||
if (vm.slot[_currentScript].number < 100)
|
if (vm.slot[_currentScript].number < 100)
|
||||||
|
|
|
@ -421,15 +421,14 @@ void ScummEngine_v8::writeVar(uint var, int value) {
|
||||||
|
|
||||||
if (var == VAR_CHARINC) {
|
if (var == VAR_CHARINC) {
|
||||||
if (ConfMan.hasKey("talkspeed")) {
|
if (ConfMan.hasKey("talkspeed")) {
|
||||||
_defaultTalkDelay = getTalkspeed();
|
value = getTalkspeed();
|
||||||
VAR(VAR_CHARINC) = _defaultTalkDelay;
|
|
||||||
} else {
|
} else {
|
||||||
// Save the new talkspeed value to ConfMan
|
// Save the new talkspeed value to ConfMan
|
||||||
setTalkspeed(_defaultTalkDelay);
|
setTalkspeed(value);
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
|
||||||
_scummVars[var] = value;
|
_scummVars[var] = value;
|
||||||
}
|
|
||||||
|
|
||||||
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…
Add table
Add a link
Reference in a new issue