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.
This commit is contained in:
parent
c38ea63b90
commit
0a303f4910
1 changed files with 2 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue