Fixed some positioning issues
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@183 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
5397c0c59e
commit
1f05ab9328
2 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Reference in a new issue