[Scummvm-git-logs] scummvm master -> 0a303f4910b182722c0261da378071a72d965b83

AndywinXp noreply at scummvm.org
Fri Nov 4 20:09:24 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:
0a303f4910 SCUMM: COMI: Save camera freeze state


Commit: 0a303f4910b182722c0261da378071a72d965b83
    https://github.com/scummvm/scummvm/commit/0a303f4910b182722c0261da378071a72d965b83
Author: AndywinXp (andywinxp at gmail.com)
Date: 2022-11-04T21:09:12+01:00

Commit Message:
SCUMM: COMI: Save camera freeze state

This fixes an issue in which saving a game in a situation in which the camera
is frozen (i.e. having the inventory open) and then reloading it, doesn't keep the
camera state, leading to slight graphical glitches. The original interpreter saves this
parameter, so we better do that too.

Changed paths:
    engines/scumm/saveload.cpp


diff --git a/engines/scumm/saveload.cpp b/engines/scumm/saveload.cpp
index d42dfab7deb..7491ff335e1 100644
--- a/engines/scumm/saveload.cpp
+++ b/engines/scumm/saveload.cpp
@@ -68,7 +68,7 @@ struct SaveInfoSection {
 
 #define SaveInfoSectionSize (4+4+4 + 4+4 + 4+2)
 
-#define CURRENT_VER 107
+#define CURRENT_VER 108
 #define INFOSECTION_VERSION 2
 
 #pragma mark -
@@ -1320,6 +1320,7 @@ void ScummEngine::saveLoadWithSerializer(Common::Serializer &s) {
 	s.syncAsSint16LE(camera._leftTrigger, VER(8));
 	s.syncAsSint16LE(camera._rightTrigger, VER(8));
 	s.syncAsUint16LE(camera._movingToActor, VER(8));
+	s.syncAsByte(_cameraIsFrozen, VER(108));
 
 	s.syncAsByte(_actorToPrintStrFor, VER(8));
 	s.syncAsByte(_charsetColor, VER(8));




More information about the Scummvm-git-logs mailing list