summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJannis Harder <harder@informatik.uni-luebeck.de>2011-06-18 03:05:36 +0200
committerJannis Harder <harder@informatik.uni-luebeck.de>2011-06-18 03:05:36 +0200
commita77a87994f625bb35dc64a129029d9716acf05ef (patch)
tree868e27860ef0b189c9a0caf0bcc569490ba134a4 /src
parentcaa49d174b48e48c675ba0e6409c4daf92445618 (diff)
downloadJRummikub-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')
-rw-r--r--src/jrummikub/control/RoundControl.java5
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;