From e8e49cfe5d1a142463fedb910bbad0168d911360 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 3 Sep 2015 03:07:40 -0400 Subject: [PATCH] v0.3.1b: fixed visibility bugs with spear traps and traps in general --- .../shatteredpixeldungeon/levels/traps/SpearTrap.java | 1 + .../shatteredpixel/shatteredpixeldungeon/levels/traps/Trap.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/levels/traps/SpearTrap.java b/src/com/shatteredpixel/shatteredpixeldungeon/levels/traps/SpearTrap.java index 1c775bdf4..1b06e79ea 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/levels/traps/SpearTrap.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/levels/traps/SpearTrap.java @@ -46,6 +46,7 @@ public class SpearTrap extends Trap { Sample.INSTANCE.play(Assets.SND_TRAP); } //this trap is not disarmed by being triggered + reveal(); activate(); } diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/levels/traps/Trap.java b/src/com/shatteredpixel/shatteredpixeldungeon/levels/traps/Trap.java index ef79202e3..51756cbfb 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/levels/traps/Trap.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/levels/traps/Trap.java @@ -72,6 +72,7 @@ public abstract class Trap implements Bundlable { Sample.INSTANCE.play(Assets.SND_TRAP); } disarm(); + reveal(); activate(); } } @@ -82,7 +83,6 @@ public abstract class Trap implements Bundlable { Dungeon.level.disarmTrap(pos); active = false; if (sprite != null) { - sprite.visible = true; sprite.reset( this ); } }