v0.3.1: fixed traps fading in when they are already visible

This commit is contained in:
Evan Debenham 2015-06-23 16:14:28 -04:00
parent 9f02a93500
commit 0e49bb154b

View File

@ -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));