v0.3.1: fixed traps not being visible when they should be

This commit is contained in:
Evan Debenham 2015-08-16 21:34:40 -04:00 committed by Evan Debenham
parent 614de4a583
commit 3cd4f2551a

View File

@ -81,7 +81,10 @@ public abstract class Trap implements Bundlable {
protected void disarm(){
Dungeon.level.disarmTrap(pos);
active = false;
if (sprite != null) sprite.reset( this );
if (sprite != null) {
sprite.visible = true;
sprite.reset( this );
}
}
private static final String POS = "pos";