[Scummvm-cvs-logs] SF.net SVN: scummvm: [26935] scummvm/trunk/engines/lure

dreammaster at users.sourceforge.net dreammaster at users.sourceforge.net
Sat May 26 00:59:25 CEST 2007


Revision: 26935
          http://scummvm.svn.sourceforge.net/scummvm/?rev=26935&view=rev
Author:   dreammaster
Date:     2007-05-25 15:59:24 -0700 (Fri, 25 May 2007)

Log Message:
-----------
Bugfix to save whether each NPC has been identified, and correctly transform back from Selena

Modified Paths:
--------------
    scummvm/trunk/engines/lure/res_struct.cpp
    scummvm/trunk/engines/lure/scripts.cpp

Modified: scummvm/trunk/engines/lure/res_struct.cpp
===================================================================
--- scummvm/trunk/engines/lure/res_struct.cpp	2007-05-24 21:25:15 UTC (rev 26934)
+++ scummvm/trunk/engines/lure/res_struct.cpp	2007-05-25 22:59:24 UTC (rev 26935)
@@ -420,6 +420,7 @@
 
 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::loadFromStream(ReadStream *stream) {
 	// Read in the basic fields
+	nameId = stream->readUint16LE();
 	descId = stream->readUint16LE();
 	descId2 = stream->readUint16LE();
 	actions = stream->readUint32LE();

Modified: scummvm/trunk/engines/lure/scripts.cpp
===================================================================
--- scummvm/trunk/engines/lure/scripts.cpp	2007-05-24 21:25:15 UTC (rev 26934)
+++ scummvm/trunk/engines/lure/scripts.cpp	2007-05-25 22:59:24 UTC (rev 26935)
@@ -364,7 +364,7 @@
 	hotspot->startY = player->startY - 10;
 	
 	Hotspot *activeHotspot = res.addHotspot(TRANSFORM_ID);
-	activeHotspot->setFrameNumber(0);
+	activeHotspot->setActionCtr(0);
 	activeHotspot->setHotspotScript(0x630);
 }
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list