[Scummvm-git-logs] scummvm master -> d9777bf5127c6449c49d04ae2942822fadbb8517

AndywinXp noreply at scummvm.org
Mon Jan 23 15:14:57 UTC 2023


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:
d9777bf512 SCUMM: GUI: Correctly save the shake screen flag


Commit: d9777bf5127c6449c49d04ae2942822fadbb8517
    https://github.com/scummvm/scummvm/commit/d9777bf5127c6449c49d04ae2942822fadbb8517
Author: AndywinXp (andywinxp at gmail.com)
Date: 2023-01-23T16:14:45+01:00

Commit Message:
SCUMM: GUI: Correctly save the shake screen flag

Changed paths:
    engines/scumm/gfx_gui.cpp


diff --git a/engines/scumm/gfx_gui.cpp b/engines/scumm/gfx_gui.cpp
index 923c3ebab90..734db7c2c77 100644
--- a/engines/scumm/gfx_gui.cpp
+++ b/engines/scumm/gfx_gui.cpp
@@ -2222,11 +2222,18 @@ bool ScummEngine::executeMainMenuOperation(int op, int mouseX, int mouseY, bool
 				curSlot = _mainMenuSavegameLabel + (isLoomVga ? _firstSaveStateOfList : _curDisplayedSaveSlotPage * 9);
 				if (canWriteGame(curSlot)) {
 					restoreCursorPostMenu();
+
+					// Temporarily restore the shake effect to save it...
+					setShake(_shakeTempSavedState);
+
 					if (saveState(curSlot - 1, false, dummyString)) {
+						setShake(0);
 						saveCursorPreMenu();
 						_saveScriptParam = GAME_PROPER_SAVE;
 						drawMainMenuControls();
 						return true;
+					} else {
+						setShake(0);
 					}
 				} else {
 					convertMessageToString((const byte *)getGUIString(gsGameNotSaved), (byte *)saveScreenTitle, sizeof(saveScreenTitle));




More information about the Scummvm-git-logs mailing list