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

dreammaster at users.sourceforge.net dreammaster at users.sourceforge.net
Sun Dec 16 10:36:08 CET 2007


Revision: 29875
          http://scummvm.svn.sourceforge.net/scummvm/?rev=29875&view=rev
Author:   dreammaster
Date:     2007-12-16 01:36:07 -0800 (Sun, 16 Dec 2007)

Log Message:
-----------
Bugfix for walking to hotspots - if the mouse was already highlighting the hotspot when a room was entered, clicking on it would cause the player to walk to an arbitrary exit

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

Modified: scummvm/trunk/engines/lure/room.cpp
===================================================================
--- scummvm/trunk/engines/lure/room.cpp	2007-12-16 08:20:35 UTC (rev 29874)
+++ scummvm/trunk/engines/lure/room.cpp	2007-12-16 09:36:07 UTC (rev 29875)
@@ -153,6 +153,8 @@
 	int16 currentY = m.y();
 	HotspotDataList::iterator i;
 
+	_destRoomNumber = 0;
+
 	// Loop for each range of hotspot Ids
 	for (int ctr = 0; ctr < 4; ++ctr) {
 		for (i = list.begin(); i != list.end(); ++i) {
@@ -209,7 +211,6 @@
 		_hotspotId = 0;
 		_hotspotNameId = 0;
 		_hotspot = NULL;
-		_destRoomNumber = 0;
 	} else {
 		_hotspotNameId = entry->nameId;
 		_hotspot = entry;


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