# HG changeset patch # User Matti Hamalainen # Date 1338212801 -10800 # Node ID 5b25561855c3f0dcba4bdf5a88adab685adf38ec # Parent 0ec311706d3cd42a7fbb0c225a7b58b814751520 Move next piece animation call into better place. diff -r 0ec311706d3c -r 5b25561855c3 game/Engine.java --- a/game/Engine.java Sat Nov 26 11:25:46 2011 +0200 +++ b/game/Engine.java Mon May 28 16:46:41 2012 +0300 @@ -344,6 +344,11 @@ public void animate(float time) { + if (nextPiece != null) + { + nextPiece.animate(time); + } + ptime = time; for (int y = 0; y < boardSize; y++) for (int x = 0; x < boardSize; x++) @@ -846,8 +851,6 @@ // Animate components lauta.animate(gameUpdates); - if (lauta.nextPiece != null) - lauta.nextPiece.animate(gameUpdates); // Repaint with a frame limiter if (gameUpdates % 4 == 1)