diff options
author | Jannis Harder <harder@informatik.uni-luebeck.de> | 2011-06-18 03:05:36 +0200 |
---|---|---|
committer | Jannis Harder <harder@informatik.uni-luebeck.de> | 2011-06-18 03:05:36 +0200 |
commit | a77a87994f625bb35dc64a129029d9716acf05ef (patch) | |
tree | 868e27860ef0b189c9a0caf0bcc569490ba134a4 /src/jrummikub/control | |
parent | caa49d174b48e48c675ba0e6409c4daf92445618 (diff) | |
download | JRummikub-a77a87994f625bb35dc64a129029d9716acf05ef.tar JRummikub-a77a87994f625bb35dc64a129029d9716acf05ef.zip |
Fixed hand sorting in inspect turn
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@457 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/control')
-rw-r--r-- | src/jrummikub/control/RoundControl.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/jrummikub/control/RoundControl.java b/src/jrummikub/control/RoundControl.java index 84ae8c6..3c50819 100644 --- a/src/jrummikub/control/RoundControl.java +++ b/src/jrummikub/control/RoundControl.java @@ -198,9 +198,10 @@ public class RoundControl { private void endOfTurn() { turnControl = null; + roundState.getActivePlayer().setHand(clonedHand); if (roundState.getTurnNumber() >= 1) { checkTurn(); - } + } if (roundState.getLastPlayer() == null) { if (roundState.getGameHeap().getSize() == 0) { @@ -225,8 +226,6 @@ public class RoundControl { } private void checkTurn() { - roundState.getActivePlayer().setHand(clonedHand); - if (!clonedTable.isValid()) { rejectMove(); return; |