From 370ce6c579828b50651d3636d9502f9c3b87ad15 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sun, 15 Feb 2009 12:10:54 -0500 Subject: Engine: Fixed unstable transitions When a transition completed, the transition was supposed to be unset. However, there was a local variable that hid the correct variable so it wasn't being unset. This has been fixed with a class reference. Transitions do not appear to randomly not execute now. Fixes #9 --- src/com/fourisland/fourpuzzle/Display.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/com/fourisland') diff --git a/src/com/fourisland/fourpuzzle/Display.java b/src/com/fourisland/fourpuzzle/Display.java index a265806..de72c4d 100755 --- a/src/com/fourisland/fourpuzzle/Display.java +++ b/src/com/fourisland/fourpuzzle/Display.java @@ -188,8 +188,8 @@ public class Display { transitionWait = new CountDownLatch(1); transitionWait.await(); - transition = null; - + Display.transition = null; + if (!startedTransition) { transitionRunning = false; -- cgit 1.4.1