diff options
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; |