summaryrefslogtreecommitdiff
path: root/src/randtiles.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/randtiles.cpp')
-rw-r--r--src/randtiles.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/randtiles.cpp b/src/randtiles.cpp
index da86a92..f1b2392 100644
--- a/src/randtiles.cpp
+++ b/src/randtiles.cpp
@@ -93,16 +93,20 @@ RandomTileData *RandomTileData::instance = 0;
dDvdLoader_c RandTileLoader;
+// This is a bit hacky but I'm lazy
+bool LoadLevelInfo();
+
extern "C" bool RandTileLoadHook() {
// OSReport("Trying to load...");
void *buf = RandTileLoader.load("/NewerRes/RandTiles.bin");
+ bool LIresult = LoadLevelInfo();
if (buf == 0) {
// OSReport("Failed.\n");
return false;
} else {
// OSReport("Successfully loaded RandTiles.bin [%p].\n", buf);
RandomTileData::instance = (RandomTileData*)buf;
- return true;
+ return LIresult;
}
}