summaryrefslogtreecommitdiff
path: root/src/koopatlas/mapdata.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/koopatlas/mapdata.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/koopatlas/mapdata.cpp b/src/koopatlas/mapdata.cpp
index fb09f1b..5b38126 100644
--- a/src/koopatlas/mapdata.cpp
+++ b/src/koopatlas/mapdata.cpp
@@ -50,7 +50,10 @@ bool dKPMapData_c::load(const char *filename) {
if (!fixedUp)
fixup();
- return loadTilesets();
+ bool didLoadTilesets = loadTilesets();
+ bool didLoadBG = (bgLoader.load("/Maps/Water.brres") != 0);
+
+ return didLoadTilesets && didLoadBG;
}
bool dKPMapData_c::loadTilesets() {
@@ -88,6 +91,8 @@ void dKPMapData_c::unloadTilesets() {
delete[] tilesetLoaders;
}
+
+ bgLoader.unload();
}
void dKPMapData_c::fixup() {