summaryrefslogtreecommitdiffstats
path: root/src/jrummikub
diff options
context:
space:
mode:
Diffstat (limited to 'src/jrummikub')
-rw-r--r--src/jrummikub/control/TurnControl.java3
-rw-r--r--src/jrummikub/model/Table.java2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/jrummikub/control/TurnControl.java b/src/jrummikub/control/TurnControl.java
index 3213fd6..f39ec39 100644
--- a/src/jrummikub/control/TurnControl.java
+++ b/src/jrummikub/control/TurnControl.java
@@ -153,7 +153,8 @@ public class TurnControl {
}
pickUpSelectedStones();
- table.drop(new StoneSet(selectedStones), position);
+ table.drop(new StoneSet(selectedStones), new Position(position.getX()
+ - selectedStones.size() * 0.5f, position.getY() - 0.5f));
selectedStones.clear();
view.getTablePanel().setStoneSets(table);
diff --git a/src/jrummikub/model/Table.java b/src/jrummikub/model/Table.java
index 58c65a6..4c84193 100644
--- a/src/jrummikub/model/Table.java
+++ b/src/jrummikub/model/Table.java
@@ -84,7 +84,7 @@ public class Table extends StoneTray<StoneSet> implements ITable {
if (set.classify() == StoneSet.Type.RUN) {
Position leftPosition, rightPosition;
leftPosition = setPosition;
- rightPosition = new Position(setPosition.getX() + stonePosition,
+ rightPosition = new Position(setPosition.getX() + stonePosition + 1,
setPosition.getY());
drop(leftSet, leftPosition);