From 8740e81d1f6f8a97f9c74c74241476e15b561d57 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 25 May 2007 22:59:24 +0000 Subject: Bugfix to save whether each NPC has been identified, and correctly transform back from Selena svn-id: r26935 --- engines/lure/res_struct.cpp | 2 ++ engines/lure/scripts.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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); } -- cgit v1.2.3