[Scummvm-cvs-logs] SF.net SVN: scummvm:[44496] scummvm/trunk/engines/gob/hotspots.cpp

strangerke at users.sourceforge.net strangerke at users.sourceforge.net
Wed Sep 30 21:14:48 CEST 2009


Revision: 44496
          http://scummvm.svn.sourceforge.net/scummvm/?rev=44496&view=rev
Author:   strangerke
Date:     2009-09-30 19:14:46 +0000 (Wed, 30 Sep 2009)

Log Message:
-----------
Fascination - Fix a regression in intro (fix of R42171)

Modified Paths:
--------------
    scummvm/trunk/engines/gob/hotspots.cpp

Modified: scummvm/trunk/engines/gob/hotspots.cpp
===================================================================
--- scummvm/trunk/engines/gob/hotspots.cpp	2009-09-30 16:16:53 UTC (rev 44495)
+++ scummvm/trunk/engines/gob/hotspots.cpp	2009-09-30 19:14:46 UTC (rev 44496)
@@ -1411,7 +1411,15 @@
 		} else if (hotspotIndex2 != 0) {
 			findNthPlain(hotspotIndex2, endIndex, id, index);
 		} else {
-			findNthPlain(0, 0, id, index);
+			// Enter the first hotspot
+			for (int i = 0; (i < kHotspotCount) && !_hotspots[i].isEnd(); i++) {
+				Hotspot &spot = _hotspots[i];
+				if (spot.isFilledNew()) {
+					id    = spot.id;
+					index = i;
+					break;
+				}
+			}
 
 			// Leave the current hotspot
 			if ((_currentKey != 0) && (_hotspots[_currentIndex].funcLeave != 0))


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