[Scummvm-git-logs] scummvm master -> a240e8b8750c9dcae5458acb11d1c50b2f1e8bbf
Die4Ever
noreply at scummvm.org
Fri Feb 11 01:08:32 UTC 2022
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
a240e8b875 GROOVIE: T11H fix autosave bug during puzzles
Commit: a240e8b8750c9dcae5458acb11d1c50b2f1e8bbf
https://github.com/scummvm/scummvm/commit/a240e8b8750c9dcae5458acb11d1c50b2f1e8bbf
Author: Die4Ever (die4ever2005 at gmail.com)
Date: 2022-02-10T19:06:07-06:00
Commit Message:
GROOVIE: T11H fix autosave bug during puzzles
Changed paths:
engines/groovie/script.cpp
diff --git a/engines/groovie/script.cpp b/engines/groovie/script.cpp
index 4ed8bff5a68..8f971fff1fe 100644
--- a/engines/groovie/script.cpp
+++ b/engines/groovie/script.cpp
@@ -1389,7 +1389,7 @@ void Script::o_mov() {
uint16 varnum1 = readScript8or16bits();
uint16 varnum2 = readScript16bits();
- debugC(1, kDebugScript, "Groovie::Script: MOV var[0x%04X] = var[0x%04X]", varnum1, varnum2);
+ debugC(1, kDebugScript, "Groovie::Script: MOV var[0x%04X] (%u) = var[0x%04X] (%u)", varnum1, _variables[varnum1], varnum2, _variables[varnum2]);
setVariable(varnum1, _variables[varnum2]);
}
@@ -1542,7 +1542,7 @@ void Script::o_loadstringvar() {
debugCN(1, kDebugScript, "Groovie::Script: LOADSTRINGVAR var[0x%04X..] =", varnum);
do {
setVariable(varnum++, readScriptChar(true, true, true));
- debugCN(1, kDebugScript, " 0x%02X", _variables[varnum - 1]);
+ debugCN(1, kDebugScript, " 0x%02X ", _variables[varnum - 1]);
} while (!(getCodeByte(_currentInstruction - 1) & 0x80));
debugCN(1, kDebugScript, "\n");
}
@@ -1926,7 +1926,8 @@ void Script::o_returnscript() {
_vm->_videoPlayer->resetFlags();
_vm->_videoPlayer->setOrigin(0, 0);
- if (canDirectSave()) {
+ // T11H uses val==1 when you open the GameBook while the puzzle is still ongoing
+ if (canDirectSave() && (_version != kGroovieT11H || val == 0)) {
_vm->saveAutosaveIfEnabled();
}
}
More information about the Scummvm-git-logs
mailing list