summaryrefslogtreecommitdiff
path: root/src/koopatlas/hud.cpp
diff options
context:
space:
mode:
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;