Added saving of current album page of kyra3 like the original did.
svn-id: r32025
This commit is contained in:
parent
61a105c9ba
commit
a6ccfa4f09
2 changed files with 4 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue