mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-26 14:27:14 +00:00
Fix for missing data in the savegame format that could result in not being able to talk to Goewin in the apothecary after restoring a savegame
svn-id: r33057
This commit is contained in:
parent
0860df5d0e
commit
eaeb1587f4
@ -36,7 +36,7 @@ namespace Lure {
|
||||
#define LURE_DAT_MAJOR 1
|
||||
#define LURE_DAT_MINOR 29
|
||||
#define LURE_MIN_SAVEGAME_MINOR 25
|
||||
#define LURE_SAVEGAME_MINOR 32
|
||||
#define LURE_SAVEGAME_MINOR 33
|
||||
|
||||
#define LURE_DEBUG 1
|
||||
|
||||
|
@ -456,6 +456,8 @@ void HotspotData::saveToStream(WriteStream *stream) {
|
||||
stream->writeSint16LE(startY);
|
||||
stream->writeUint16LE(roomNumber);
|
||||
stream->writeByte(layer);
|
||||
stream->writeUint16LE(walkX);
|
||||
stream->writeUint16LE(walkY);
|
||||
|
||||
stream->writeUint16LE(width);
|
||||
stream->writeUint16LE(height);
|
||||
@ -503,6 +505,10 @@ void HotspotData::loadFromStream(ReadStream *stream) {
|
||||
uint8 saveVersion = LureEngine::getReference().saveVersion();
|
||||
if (saveVersion >= 29)
|
||||
layer = stream->readByte();
|
||||
if (saveVersion >= 33) {
|
||||
walkX = stream->readUint16LE();
|
||||
walkY = stream->readUint16LE();
|
||||
}
|
||||
|
||||
width = stream->readUint16LE();
|
||||
height = stream->readUint16LE();
|
||||
|
Loading…
x
Reference in New Issue
Block a user