From 0e49bb154be25b1916ef04c38cd891a43f972bad Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 23 Jun 2015 16:14:28 -0400 Subject: [PATCH] v0.3.1: fixed traps fading in when they are already visible --- .../shatteredpixel/shatteredpixeldungeon/levels/traps/Trap.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/levels/traps/Trap.java b/src/com/shatteredpixel/shatteredpixeldungeon/levels/traps/Trap.java index 5ba9ebe83..394026d0f 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/levels/traps/Trap.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/levels/traps/Trap.java @@ -50,7 +50,7 @@ public abstract class Trap implements Bundlable { public Trap reveal() { visible = true; - if (sprite != null) { + if (sprite != null && sprite.visible == false) { sprite.visible = true; sprite.alpha( 0 ); sprite.parent.add( new AlphaTweener( sprite, 1, 0.6f));