Added saving of current album page of kyra3 like the original did.

svn-id: r32025
This commit is contained in:
Johannes Schickel 2008-05-11 16:56:19 +00:00
parent 61a105c9ba
commit a6ccfa4f09
2 changed files with 4 additions and 3 deletions

View file

@ -29,7 +29,7 @@
#include "kyra/kyra.h"
#define CURRENT_SAVE_VERSION 11
#define CURRENT_SAVE_VERSION 12
#define GF_FLOPPY (1 << 0)
#define GF_TALKIE (1 << 1)

View file

@ -49,7 +49,7 @@ void KyraEngine_MR::saveGame(const char *fileName, const char *saveName) {
out->writeSint16BE(_lastMusicCommand);
out->writeByte(_currentChapter);
out->writeByte(_characterShapeFile);
//XXX
out->writeByte(_album.curPage);
out->writeSint16BE(_score);
out->writeSint16BE(_scoreMax);
out->writeByte(_malcolmsMood);
@ -158,7 +158,8 @@ void KyraEngine_MR::loadGame(const char *fileName) {
_lastMusicCommand = in.readSint16();
_currentChapter = in.readByte();
_characterShapeFile = in.readByte();
//XXX
if (header.version >= 12 || header.originalSave)
_album.curPage = in.readByte();
_score = in.readSint16();
_scoreMax = in.readSint16();
_malcolmsMood = in.readByte();