summaryrefslogtreecommitdiff
path: root/src/koopatlas/mapdata.cpp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-02-23 05:40:10 +0100
committerTreeki <treeki@gmail.com>2012-02-23 05:40:10 +0100
commitd2dcf3250ea5e9e2197c8f640d2a2cf8c963f74d (patch)
treee9e4efdea441f34b76505e85caab97f67013c023 /src/koopatlas/mapdata.cpp
parente2bb29c4bbf36a4e45a7312943fa50c319b8bc26 (diff)
downloadkamek-d2dcf3250ea5e9e2197c8f640d2a2cf8c963f74d.tar.gz
kamek-d2dcf3250ea5e9e2197c8f640d2a2cf8c963f74d.zip
added water BG to World Maps
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() {