[Scummvm-cvs-logs] SF.net SVN: scummvm: [26542] scummvm/trunk/tools/create_lure/ create_lure_dat.cpp

dreammaster at users.sourceforge.net dreammaster at users.sourceforge.net
Wed Apr 18 08:54:01 CEST 2007


Revision: 26542
          http://scummvm.svn.sourceforge.net/scummvm/?rev=26542&view=rev
Author:   dreammaster
Date:     2007-04-17 23:54:00 -0700 (Tue, 17 Apr 2007)

Log Message:
-----------
Bugfix for original game inter-room routes that could get your sidekick stuck alternating between rooms 10 and 11

Modified Paths:
--------------
    scummvm/trunk/tools/create_lure/create_lure_dat.cpp

Modified: scummvm/trunk/tools/create_lure/create_lure_dat.cpp
===================================================================
--- scummvm/trunk/tools/create_lure/create_lure_dat.cpp	2007-04-17 09:40:10 UTC (rev 26541)
+++ scummvm/trunk/tools/create_lure/create_lure_dat.cpp	2007-04-18 06:54:00 UTC (rev 26542)
@@ -884,7 +884,7 @@
 
 	// Post process the list to adjust data
 	RoomExitCoordinateEntryResource *rec = (RoomExitCoordinateEntryResource *) data;
-	for (roomNum = 0; roomNum < EXIT_COORDINATES_NUM_ROOMS; ++roomNum, ++rec) {
+	for (roomNum = 1; roomNum <= EXIT_COORDINATES_NUM_ROOMS; ++roomNum, ++rec) {
 		for (entryNum = 0; entryNum < ROOM_EXIT_COORDINATES_NUM_ENTRIES; ++entryNum) {
 			if ((rec->entries[entryNum].x != 0) || (rec->entries[entryNum].y != 0)) {
 				rec->entries[entryNum].x = TO_LE_16(FROM_LE_16(rec->entries[entryNum].x) - 0x80);
@@ -897,6 +897,10 @@
 		for (entryNum = 0; entryNum < ROOM_EXIT_COORDINATES_ENTRY_NUM_ROOMS; ++entryNum) {
 			rec->roomIndex[entryNum] = TO_LE_16(FROM_LE_16(rec->roomIndex[entryNum]) / 6);
 		}
+
+		// Bugfix for the original game data to get to room #27 via rooms #10 or #11 
+		if ((roomNum == 10) || (roomNum == 11))
+			rec->roomIndex[26] = 1;
 	}
 }
 


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