summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-06-18 11:29:48 +0200
committeraap <aap@papnet.eu>2019-06-18 11:29:48 +0200
commitd5beaee746a79f1187cd436139b97f40c09569c6 (patch)
tree43b4e9e636a22fc076447c48c32dd033537b9dfe
parentfinished CFileLoader, except a crash! (diff)
downloadre3-d5beaee746a79f1187cd436139b97f40c09569c6.tar
re3-d5beaee746a79f1187cd436139b97f40c09569c6.tar.gz
re3-d5beaee746a79f1187cd436139b97f40c09569c6.tar.bz2
re3-d5beaee746a79f1187cd436139b97f40c09569c6.tar.lz
re3-d5beaee746a79f1187cd436139b97f40c09569c6.tar.xz
re3-d5beaee746a79f1187cd436139b97f40c09569c6.tar.zst
re3-d5beaee746a79f1187cd436139b97f40c09569c6.zip
-rw-r--r--src/FileLoader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FileLoader.cpp b/src/FileLoader.cpp
index 69d8a483..7dfb1cd2 100644
--- a/src/FileLoader.cpp
+++ b/src/FileLoader.cpp
@@ -99,7 +99,7 @@ CFileLoader::LoadLevel(const char *filename)
objectsLoaded = true;
}
LoadingScreenLoadingFile(line + 4);
- LoadObjectInstance(line + 4);
+ LoadScene(line + 4);
}else if(strncmp(line, "MAPZONE", 7) == 0){
LoadingScreenLoadingFile(line + 8);
LoadMapZones(line + 8);
@@ -1146,7 +1146,7 @@ CFileLoader::LoadMapZones(const char *filename)
STARTPATCHES
// this makes my game crash in CGarage!
- //InjectHook(0x476290, CFileLoader::LoadLevel, PATCH_JUMP);
+ InjectHook(0x476290, CFileLoader::LoadLevel, PATCH_JUMP);
InjectHook(0x476520, CFileLoader::LoadCollisionFromDatFile, PATCH_JUMP);
InjectHook(0x4761D0, CFileLoader::LoadLine, PATCH_JUMP);