diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2009-02-15 12:10:54 -0500 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2009-02-15 12:10:54 -0500 |
commit | 370ce6c579828b50651d3636d9502f9c3b87ad15 (patch) | |
tree | 6628e30ec87b4ed00c42fc35dbf426a5cec6c055 | |
parent | ffba4e065710ce5d76872607d9bc4676feae6c28 (diff) | |
download | fourpuzzle-370ce6c579828b50651d3636d9502f9c3b87ad15.tar.gz fourpuzzle-370ce6c579828b50651d3636d9502f9c3b87ad15.tar.bz2 fourpuzzle-370ce6c579828b50651d3636d9502f9c3b87ad15.zip |
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
-rwxr-xr-x | src/com/fourisland/fourpuzzle/Display.java | 4 |
1 files changed, 2 insertions, 2 deletions
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 { | |||
188 | transitionWait = new CountDownLatch(1); | 188 | transitionWait = new CountDownLatch(1); |
189 | transitionWait.await(); | 189 | transitionWait.await(); |
190 | 190 | ||
191 | transition = null; | 191 | Display.transition = null; |
192 | 192 | ||
193 | if (!startedTransition) | 193 | if (!startedTransition) |
194 | { | 194 | { |
195 | transitionRunning = false; | 195 | transitionRunning = false; |