diff options
author | Paul Gilbert | 2007-11-17 08:44:38 +0000 |
---|---|---|
committer | Paul Gilbert | 2007-11-17 08:44:38 +0000 |
commit | 75382bdadccb2abfb39cecbeb94d63912f82c32e (patch) | |
tree | ec6e0c2f53654c247a3be935fce6ca28d8aaa197 /engines/lure | |
parent | 4987cde3a13cb08c299928dd001a77d6bbef83a8 (diff) | |
download | scummvm-rg350-75382bdadccb2abfb39cecbeb94d63912f82c32e.tar.gz scummvm-rg350-75382bdadccb2abfb39cecbeb94d63912f82c32e.tar.bz2 scummvm-rg350-75382bdadccb2abfb39cecbeb94d63912f82c32e.zip |
Added saving of the current hotspot animation record to savegames
svn-id: r29528
Diffstat (limited to 'engines/lure')
-rw-r--r-- | engines/lure/luredefs.h | 6 | ||||
-rw-r--r-- | engines/lure/res_struct.cpp | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/engines/lure/luredefs.h b/engines/lure/luredefs.h index 6dca97678c..c873a38c36 100644 --- a/engines/lure/luredefs.h +++ b/engines/lure/luredefs.h @@ -34,7 +34,7 @@ namespace Lure { #define SUPPORT_FILENAME "lure.dat" #define LURE_DAT_MAJOR 1 -#define LURE_DAT_MINOR 23 +#define LURE_DAT_MINOR 24 #define LURE_DEBUG 1 @@ -297,8 +297,8 @@ enum CursorType {CURSOR_ARROW = 0, CURSOR_DISK = 1, CURSOR_TIME_START = 2, #define EWAN_ANIM_INDEX 22 #define EWAN_ALT_ANIM_INDEX 23 #define PLAYER_ANIM_INDEX 31 -#define SELENA_ANIM_INDEX 32 -#define BLACKSMITH_DEFAULT_ANIM_INDEX 33 +#define SELENA_ANIM_INDEX 33 +#define BLACKSMITH_DEFAULT_ANIM_INDEX 34 #define CONVERSE_COUNTDOWN_SIZE 40 #define IDLE_COUNTDOWN_SIZE 15 diff --git a/engines/lure/res_struct.cpp b/engines/lure/res_struct.cpp index 6dd121e90e..ae229fa4e4 100644 --- a/engines/lure/res_struct.cpp +++ b/engines/lure/res_struct.cpp @@ -456,6 +456,7 @@ void HotspotData::saveToStream(WriteStream *stream) { stream->writeUint16LE(tickScriptOffset); stream->writeUint16LE(characterMode); stream->writeUint16LE(delayCtr); + stream->writeUint16LE(animRecordId); // Write out the runtime fields stream->writeUint16LE(actionCtr); @@ -498,6 +499,7 @@ void HotspotData::loadFromStream(ReadStream *stream) { tickScriptOffset = stream->readUint16LE(); characterMode = (CharacterMode) stream->readUint16LE(); delayCtr = stream->readUint16LE(); + animRecordId = stream->readUint16LE(); // Read in the runtime fields actionCtr = stream->readUint16LE(); |