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

dreammaster at users.sourceforge.net dreammaster at users.sourceforge.net
Thu Feb 1 05:41:37 CET 2007


Revision: 25317
          http://scummvm.svn.sourceforge.net/scummvm/?rev=25317&view=rev
Author:   dreammaster
Date:     2007-01-31 20:41:36 -0800 (Wed, 31 Jan 2007)

Log Message:
-----------
Added custom load code for room #20 Notice

Modified Paths:
--------------
    scummvm/trunk/engines/lure/res.cpp

Modified: scummvm/trunk/engines/lure/res.cpp
===================================================================
--- scummvm/trunk/engines/lure/res.cpp	2007-01-31 23:48:12 UTC (rev 25316)
+++ scummvm/trunk/engines/lure/res.cpp	2007-02-01 04:41:36 UTC (rev 25317)
@@ -472,6 +472,7 @@
 	} else {
 		// Standard load
 		bool loadFlag = true;
+		uint16 talkIndex;
 
 		switch (res->loadOffset) {
 		case 0x3afe:
@@ -491,6 +492,17 @@
 			// Standard animation load
 			break;
 
+		case 0x8617:
+			// Custom loader used by the notice hotspot 42ah in room #20
+			talkIndex = _fieldList.getField(TALK_INDEX);
+			if ((talkIndex < 8) || (talkIndex >= 14))
+				// Don't load hotspot
+				loadFlag = false;
+			else
+				// Make the notice be on-screen
+				res->startY = 85;    
+			break;
+
 		case 0x88ac:
 			// Torch in room #1
 			loadFlag = _fieldList.getField(TORCH_HIDE) == 0;
@@ -506,6 +518,7 @@
 			Hotspot *hotspot = addHotspot(hotspotId);
 			assert(hotspot);
 			if (res->loadOffset == 0x7167) hotspot->setPersistant(true);
+			if (res->loadOffset == 0x8617) hotspot->handleTalkDialog();
 			return hotspot;
 		}
 	}


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