summaryrefslogtreecommitdiff
path: root/src/koopatlas/hud.cpp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-09-22 05:18:52 +0200
committerTreeki <treeki@gmail.com>2012-09-22 05:18:52 +0200
commit1d208821593eb4da0ea6bd801454be4535312e3a (patch)
tree049b8c762d5260427d5c6375e99df2e3b04a41e1 /src/koopatlas/hud.cpp
parent69e333ae495048f991495b86faa7c7c137a92078 (diff)
downloadkamek-1d208821593eb4da0ea6bd801454be4535312e3a.tar.gz
kamek-1d208821593eb4da0ea6bd801454be4535312e3a.zip
quick fix for the HUD
Diffstat (limited to '')
-rw-r--r--src/koopatlas/hud.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/koopatlas/hud.cpp b/src/koopatlas/hud.cpp
index cd52beb..5fe8072 100644
--- a/src/koopatlas/hud.cpp
+++ b/src/koopatlas/hud.cpp
@@ -120,10 +120,14 @@ int dWMHud_c::onDraw() {
void dWMHud_c::playShowHeaderAnim() {
+ if (!this || !this->layoutLoaded) return;
+
layout.enableNonLoopAnim(SHOW_HEADER);
}
void dWMHud_c::playHideHeaderAnim() {
+ if (!this || !this->layoutLoaded) return;
+
if (!layout.isAnimOn(SHOW_HEADER)) {
layout.enableNonLoopAnim(SHOW_HEADER, true);
}