diff options
author | Paul Gilbert | 2007-04-18 06:54:00 +0000 |
---|---|---|
committer | Paul Gilbert | 2007-04-18 06:54:00 +0000 |
commit | 4a0c27dc860935005b1057412e569a1804b32ef4 (patch) | |
tree | 429503daa4f37f5e011a85513d151de6f10e2a76 /tools | |
parent | 7d7cee6649a3e69a1e27347bb55568416c9f479e (diff) | |
download | scummvm-rg350-4a0c27dc860935005b1057412e569a1804b32ef4.tar.gz scummvm-rg350-4a0c27dc860935005b1057412e569a1804b32ef4.tar.bz2 scummvm-rg350-4a0c27dc860935005b1057412e569a1804b32ef4.zip |
Bugfix for original game inter-room routes that could get your sidekick stuck alternating between rooms 10 and 11
svn-id: r26542
Diffstat (limited to 'tools')
-rw-r--r-- | tools/create_lure/create_lure_dat.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/create_lure/create_lure_dat.cpp b/tools/create_lure/create_lure_dat.cpp index b1c81830b9..8aa3ab7fc4 100644 --- a/tools/create_lure/create_lure_dat.cpp +++ b/tools/create_lure/create_lure_dat.cpp @@ -884,7 +884,7 @@ void read_room_exit_coordinate_data(byte *&data, uint16 &totalSize) // 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 @@ void read_room_exit_coordinate_data(byte *&data, uint16 &totalSize) 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; } } |