diff options
author | Paul Gilbert | 2007-05-20 13:07:44 +0000 |
---|---|---|
committer | Paul Gilbert | 2007-05-20 13:07:44 +0000 |
commit | 26b221a7010801a4189742c9534cf82a542f480b (patch) | |
tree | ce0f6ffe6034b1ca90ce1087a5d58913a3da7261 /engines/lure/hotspots.cpp | |
parent | 56bb400ef97cc28368fb2e831bf2ee81e9951e1f (diff) | |
download | scummvm-rg350-26b221a7010801a4189742c9534cf82a542f480b.tar.gz scummvm-rg350-26b221a7010801a4189742c9534cf82a542f480b.tar.bz2 scummvm-rg350-26b221a7010801a4189742c9534cf82a542f480b.zip |
Added savegame code so characters correctly leave rooms after restoring a game
svn-id: r26888
Diffstat (limited to 'engines/lure/hotspots.cpp')
-rw-r--r-- | engines/lure/hotspots.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/lure/hotspots.cpp b/engines/lure/hotspots.cpp index 290838f969..f3b1c01d3d 100644 --- a/engines/lure/hotspots.cpp +++ b/engines/lure/hotspots.cpp @@ -2044,6 +2044,7 @@ void Hotspot::saveToStream(Common::WriteStream *stream) { stream->writeSint16LE(_startY); stream->writeSint16LE(_destX); stream->writeSint16LE(_destY); + stream->writeUint16LE(_destHotspotId); stream->writeUint16LE(_frameWidth); stream->writeUint16LE(_height); stream->writeUint16LE(_width); @@ -2079,6 +2080,7 @@ void Hotspot::loadFromStream(Common::ReadStream *stream) { _startY = stream->readSint16LE(); _destX = stream->readSint16LE(); _destY = stream->readSint16LE(); + _destHotspotId = stream->readUint16LE(); _frameWidth = stream->readUint16LE(); _height = stream->readUint16LE(); _width = stream->readUint16LE(); |