v0.3.1b: fixed visibility bugs with spear traps and traps in general

This commit is contained in:
Evan Debenham
2015-09-03 03:07:40 -04:00
parent b8fb3ce5b3
commit e8e49cfe5d
2 changed files with 2 additions and 1 deletions
@@ -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();
}
@@ -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 );
}
}