v0.2.3f: fixed a bug where the resume indicator was clickable after the hero had died.
This commit is contained in:
parent
49bab26d7b
commit
9ff26f034c
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user