v0.2.3f: fixed a bug where the resume indicator was clickable after the hero had died.

This commit is contained in:
Evan Debenham 2015-01-26 10:00:45 -05:00
parent 49bab26d7b
commit 9ff26f034c

View File

@ -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();