summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/control
diff options
context:
space:
mode:
Diffstat (limited to 'src/jrummikub/control')
-rw-r--r--src/jrummikub/control/GameControl.java3
-rw-r--r--src/jrummikub/control/TurnControl.java1
2 files changed, 1 insertions, 3 deletions
diff --git a/src/jrummikub/control/GameControl.java b/src/jrummikub/control/GameControl.java
index b62232f..ae50b3c 100644
--- a/src/jrummikub/control/GameControl.java
+++ b/src/jrummikub/control/GameControl.java
@@ -1,7 +1,6 @@
package jrummikub.control;
import jrummikub.model.GameState;
-import jrummikub.model.Hand;
import jrummikub.util.IListener;
import jrummikub.view.IView;
@@ -20,8 +19,6 @@ public class GameControl {
*/
public GameControl(IView view) {
this.view = view;
- view.getPlayerPanel().getHandPanel().setHandHeight(Hand.HEIGHT);
- view.getPlayerPanel().getHandPanel().setHandWidth(Hand.WIDTH);
view.getNewGameEvent().add(new IListener() {
@Override
diff --git a/src/jrummikub/control/TurnControl.java b/src/jrummikub/control/TurnControl.java
index 3a357cc..06e1d76 100644
--- a/src/jrummikub/control/TurnControl.java
+++ b/src/jrummikub/control/TurnControl.java
@@ -99,6 +99,7 @@ public class TurnControl {
}));
view.getPlayerPanel().getHandPanel().setStones(hand.clone());
+ view.getPlayerPanel().getHandPanel().resetCurrentRow();
view.enableStartTurnPanel(false);
timer.startTimer();