diff options
author | Treeki <treeki@gmail.com> | 2013-01-28 02:34:45 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2013-01-28 02:34:45 +0100 |
commit | f6ff7ca41f6e9b496a03e05e2ae053481add2a9f (patch) | |
tree | a92095aeb5cd326d50e7ee6c1d447a956d9293b7 /src/koopatlas/core.cpp | |
parent | 5b3a54abcdfee1f82b200ed45c9b44a4251c8406 (diff) | |
download | kamek-f6ff7ca41f6e9b496a03e05e2ae053481add2a9f.tar.gz kamek-f6ff7ca41f6e9b496a03e05e2ae053481add2a9f.zip |
adding warp zone support to maps and a couple of fixes
Diffstat (limited to 'src/koopatlas/core.cpp')
-rw-r--r-- | src/koopatlas/core.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/koopatlas/core.cpp b/src/koopatlas/core.cpp index c67226e..36e594a 100644 --- a/src/koopatlas/core.cpp +++ b/src/koopatlas/core.cpp @@ -181,6 +181,10 @@ bool WMInit_LoadResources2(void *ptr) { wm->mapPath = wm->getMapNameForIndex(wm->currentMapID); if (wm->mapPath == 0) wm->mapPath = wm->getMapNameForIndex(0); + if (!strcmp(wm->mapPath, "/Maps/WSEL.kpbin")) + wm->warpZoneHacks = true; + else + wm->warpZoneHacks = false; OSReport("Load map: %s\n", wm->mapPath); } @@ -1042,6 +1046,7 @@ int dScKoopatlas_c::getIndexForMapName(const char *name) { void dScKoopatlas_c::showSaveWindow() { + hud->hideAll(); state.setState(&StateID_SaveOpen); YESNO_TYPE(yesNoWindow) = 1; YESNO_VISIBLE(yesNoWindow) = 1; |