summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/control
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-06-20 15:11:51 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-06-20 15:11:51 +0200
commit843b37aa801c8627f8dd3ffcbe234153d8eebc84 (patch)
tree09f6eb4e4c3f0841fce0d041789ea4d312fc68f9 /src/jrummikub/control
parent0c3eb9a28363ae697f984d9413eb187bfe2511a9 (diff)
downloadJRummikub-843b37aa801c8627f8dd3ffcbe234153d8eebc84.tar
JRummikub-843b37aa801c8627f8dd3ffcbe234153d8eebc84.zip
Fix some bugs concerning the display of invalid sets
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@511 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/control')
-rw-r--r--src/jrummikub/control/RoundControl.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/jrummikub/control/RoundControl.java b/src/jrummikub/control/RoundControl.java
index 63ec1a2..778c3d0 100644
--- a/src/jrummikub/control/RoundControl.java
+++ b/src/jrummikub/control/RoundControl.java
@@ -1,6 +1,6 @@
package jrummikub.control;
-import static jrummikub.model.PlayerSettings.Type.HUMAN;
+import static jrummikub.model.PlayerSettings.Type.*;
import java.util.ArrayList;
import java.util.Collections;
@@ -301,12 +301,15 @@ public class RoundControl {
if (lastTurnNotEnoughPoints) {
view.setInitialMeldError(roundState.getGameSettings()
.getInitialMeldThreshold());
+ view.getTablePanel().setStoneSets(newTable);
view.setInvalidStoneSets(tableSetDifference(oldTable, newTable));
} else if (lastTurnMeldError) {
view.setInitialMeldFirstError();
+ view.getTablePanel().setStoneSets(newTable);
view.setInvalidStoneSets(touchedStoneSets(oldHand, oldTable, newTable));
} else {
view.setStoneCollectionHidden(true);
+ view.getTablePanel().setStoneSets(newTable);
view.setInvalidStoneSets(invalidStoneSets(newTable));
}
}