aboutsummaryrefslogtreecommitdiff
path: root/tools/create_lure
diff options
context:
space:
mode:
authorPaul Gilbert2007-09-28 07:57:09 +0000
committerPaul Gilbert2007-09-28 07:57:09 +0000
commitef30bc06f6e453500896901a83c738fd8eec4ed8 (patch)
treeb8d230126820ce1b7fd4e639acf707dec1962e31 /tools/create_lure
parentc5edcaa2ef09467aa3d46fd40491ca9cdf6dc2c8 (diff)
downloadscummvm-rg350-ef30bc06f6e453500896901a83c738fd8eec4ed8.tar.gz
scummvm-rg350-ef30bc06f6e453500896901a83c738fd8eec4ed8.tar.bz2
scummvm-rg350-ef30bc06f6e453500896901a83c738fd8eec4ed8.zip
Bugfix to extract correct hotspot offsets list for Italian version
svn-id: r29115
Diffstat (limited to 'tools/create_lure')
-rw-r--r--tools/create_lure/create_lure_dat.cpp6
-rw-r--r--tools/create_lure/create_lure_dat.h1
2 files changed, 4 insertions, 3 deletions
diff --git a/tools/create_lure/create_lure_dat.cpp b/tools/create_lure/create_lure_dat.cpp
index 6833a8678d..c5238c2d11 100644
--- a/tools/create_lure/create_lure_dat.cpp
+++ b/tools/create_lure/create_lure_dat.cpp
@@ -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);
diff --git a/tools/create_lure/create_lure_dat.h b/tools/create_lure/create_lure_dat.h
index 6e8adde742..a0625d8384 100644
--- a/tools/create_lure/create_lure_dat.h
+++ b/tools/create_lure/create_lure_dat.h
@@ -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