From 9ff26f034c7e18256aec266a0f6c73097079f96b Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 26 Jan 2015 10:00:45 -0500 Subject: [PATCH] v0.2.3f: fixed a bug where the resume indicator was clickable after the hero had died. --- .../shatteredpixeldungeon/ui/ResumeIndicator.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/ui/ResumeIndicator.java b/src/com/shatteredpixel/shatteredpixeldungeon/ui/ResumeIndicator.java index 77831e413..379d5b0b2 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/ui/ResumeIndicator.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/ui/ResumeIndicator.java @@ -1,7 +1,6 @@ package com.shatteredpixel.shatteredpixeldungeon.ui; import com.shatteredpixel.shatteredpixeldungeon.Dungeon; -import com.shatteredpixel.shatteredpixeldungeon.scenes.PixelScene; import com.watabou.noosa.Image; /** @@ -41,7 +40,9 @@ public class ResumeIndicator extends Tag { @Override public void update() { - if (visible != (Dungeon.hero.lastAction != null)){ + if (!Dungeon.hero.isAlive()) + visible = false; + else if (visible != (Dungeon.hero.lastAction != null)){ visible = Dungeon.hero.lastAction != null; if (visible) flash();