diff options
author | Treeki <treeki@gmail.com> | 2012-02-23 05:40:10 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-02-23 05:40:10 +0100 |
commit | d2dcf3250ea5e9e2197c8f640d2a2cf8c963f74d (patch) | |
tree | e9e4efdea441f34b76505e85caab97f67013c023 /src/koopatlas/mapdata.cpp | |
parent | e2bb29c4bbf36a4e45a7312943fa50c319b8bc26 (diff) | |
download | kamek-d2dcf3250ea5e9e2197c8f640d2a2cf8c963f74d.tar.gz kamek-d2dcf3250ea5e9e2197c8f640d2a2cf8c963f74d.zip |
added water BG to World Maps
Diffstat (limited to 'src/koopatlas/mapdata.cpp')
-rw-r--r-- | src/koopatlas/mapdata.cpp | 7 |
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() { |