diff options
| author | Paul Gilbert | 2007-05-25 22:59:24 +0000 | 
|---|---|---|
| committer | Paul Gilbert | 2007-05-25 22:59:24 +0000 | 
| commit | 8740e81d1f6f8a97f9c74c74241476e15b561d57 (patch) | |
| tree | c3de75bd2c4e40597b6121ab48820f0144663c24 | |
| parent | 1da0b2fd4085d701b0096457ca7435b0a0390b0d (diff) | |
| download | scummvm-rg350-8740e81d1f6f8a97f9c74c74241476e15b561d57.tar.gz scummvm-rg350-8740e81d1f6f8a97f9c74c74241476e15b561d57.tar.bz2 scummvm-rg350-8740e81d1f6f8a97f9c74c74241476e15b561d57.zip | |
Bugfix to save whether each NPC has been identified, and correctly transform back from Selena
svn-id: r26935
| -rw-r--r-- | engines/lure/res_struct.cpp | 2 | ||||
| -rw-r--r-- | engines/lure/scripts.cpp | 2 | 
2 files changed, 3 insertions, 1 deletions
| diff --git a/engines/lure/res_struct.cpp b/engines/lure/res_struct.cpp index 1d6e0ea04f..8c68462bf6 100644 --- a/engines/lure/res_struct.cpp +++ b/engines/lure/res_struct.cpp @@ -420,6 +420,7 @@ HotspotData::HotspotData(HotspotResource *rec) {  void HotspotData::saveToStream(WriteStream *stream) {  	// Write out the basic fields +	stream->writeUint16LE(nameId);  	stream->writeUint16LE(descId);  	stream->writeUint16LE(descId2);  	stream->writeUint32LE(actions); @@ -460,6 +461,7 @@ void HotspotData::saveToStream(WriteStream *stream) {  void HotspotData::loadFromStream(ReadStream *stream) {  	// Read in the basic fields +	nameId = stream->readUint16LE();  	descId = stream->readUint16LE();  	descId2 = stream->readUint16LE();  	actions = stream->readUint32LE(); diff --git a/engines/lure/scripts.cpp b/engines/lure/scripts.cpp index f9a395697c..6e651fbc68 100644 --- a/engines/lure/scripts.cpp +++ b/engines/lure/scripts.cpp @@ -364,7 +364,7 @@ void Script::transformPlayer(uint16 v1, uint16 v2, uint16 v3) {  	hotspot->startY = player->startY - 10;  	Hotspot *activeHotspot = res.addHotspot(TRANSFORM_ID); -	activeHotspot->setFrameNumber(0); +	activeHotspot->setActionCtr(0);  	activeHotspot->setHotspotScript(0x630);  } | 
