diff options
author | Treeki <treeki@gmail.com> | 2013-02-28 05:55:10 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2013-02-28 05:55:10 +0100 |
commit | 306549db49e602e0c6fd02a282f779e254f371c1 (patch) | |
tree | d49a6f65806e61a388a2d3a2ac448cc0d24a1074 /src/koopatlas/hud.cpp | |
parent | b376ded880b4c863adfbe99ef04155d492e82c01 (diff) | |
download | kamek-306549db49e602e0c6fd02a282f779e254f371c1.tar.gz kamek-306549db49e602e0c6fd02a282f779e254f371c1.zip |
camera panning onto unlocked paths, among other fancy stuff and fixes
Diffstat (limited to '')
-rw-r--r-- | src/koopatlas/hud.cpp | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/koopatlas/hud.cpp b/src/koopatlas/hud.cpp index ce54d8f..22928a5 100644 --- a/src/koopatlas/hud.cpp +++ b/src/koopatlas/hud.cpp @@ -110,11 +110,6 @@ int dWMHud_c::onCreate() { willShowFooter = false; loadFooterInfo(); - SaveBlock *save = GetSaveFile()->GetBlock(-1); - willShowFooter = (save->newerWorldName[0] != 0) && (save->hudHintH != 2000); - - if (!dScKoopatlas_c::instance->pathManager.isMoving) - enteredNode(); setupLives(); } @@ -123,6 +118,20 @@ int dWMHud_c::onCreate() { } +void dWMHud_c::loadInitially() { + if (doneFirstShow) + return; + + doneFirstShow = true; + + SaveBlock *save = GetSaveFile()->GetBlock(-1); + willShowFooter = (save->newerWorldName[0] != 0) && (save->hudHintH != 2000); + + if (!dScKoopatlas_c::instance->pathManager.isMoving) + enteredNode(); +} + + int dWMHud_c::onDelete() { dWMHud_c::instance = 0; |