summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/src/ch/asynk/gdx/boardgame/Piece.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/Piece.java b/core/src/ch/asynk/gdx/boardgame/Piece.java
index c9bf6fe..5008d9a 100644
--- a/core/src/ch/asynk/gdx/boardgame/Piece.java
+++ b/core/src/ch/asynk/gdx/boardgame/Piece.java
@@ -29,7 +29,7 @@ public class Piece extends Sprite implements Drawable, Positionable, Rotable, Sc
public void getPosOn(Tile tile, Orientation orientation, Vector3 v)
{
- v.set((tile.x - (getWidth() / 2f)), (tile.y- (getHeight() / 2f)), orientation.r());
+ v.set((tile.x - (getWidth() / 2f)), (tile.y - (getHeight() / 2f)), orientation.r());
}
public void setPosition(float x, float y, float r)
@@ -42,7 +42,7 @@ public class Piece extends Sprite implements Drawable, Positionable, Rotable, Sc
{
return (
(Math.abs(getX() - (tile.x - (getWidth() / 2f))) < 3) &&
- (Math.abs(getY() - (tile.y- (getHeight() / 2f))) < 3)
+ (Math.abs(getY() - (tile.y - (getHeight() / 2f))) < 3)
);
}