summaryrefslogtreecommitdiff
path: root/src/koopatlas/hud.cpp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2013-02-28 05:55:10 +0100
committerTreeki <treeki@gmail.com>2013-02-28 05:55:10 +0100
commit306549db49e602e0c6fd02a282f779e254f371c1 (patch)
treed49a6f65806e61a388a2d3a2ac448cc0d24a1074 /src/koopatlas/hud.cpp
parentb376ded880b4c863adfbe99ef04155d492e82c01 (diff)
downloadkamek-306549db49e602e0c6fd02a282f779e254f371c1.tar.gz
kamek-306549db49e602e0c6fd02a282f779e254f371c1.zip
camera panning onto unlocked paths, among other fancy stuff and fixes
Diffstat (limited to 'src/koopatlas/hud.cpp')
-rw-r--r--src/koopatlas/hud.cpp19
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;