Bugfix to extract correct hotspot offsets list for Italian version

svn-id: r29115
This commit is contained in:
Paul Gilbert 2007-09-28 07:57:09 +00:00
parent c5edcaa2ef
commit ef30bc06f6
2 changed files with 4 additions and 3 deletions

View File

@ -777,8 +777,10 @@ void read_script2_data(byte *&data, uint16 &totalSize) {
}
void read_hotspot_script_offsets(byte *&data, uint16 &totalSize) {
lureExe.seek(dataSegment + HOTSPOT_SCRIPT_LIST);
uint16 dataStart = 0x57e0;
if (language == IT_ITA) dataStart = 0x58a0;
lureExe.seek(dataSegment + dataStart);
totalSize = HOTSPOT_SCRIPT_SIZE;
data = (byte *) malloc(totalSize);
lureExe.read(data, totalSize);

View File

@ -47,7 +47,6 @@
#define SCRIPT2_SEGMENT_SIZE 0x2800
#define FIGHT_SEGMENT_SIZE 0x1850
#define HOTSPOT_SCRIPT_LIST 0x57e0
#define HOTSPOT_SCRIPT_SIZE 0x30
#define MAX_NUM_ANIM_RECORDS 0x200