summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2019-12-02 15:22:41 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2019-12-02 15:22:41 +0100
commit5b60a935ad1f82ae08c936df5e1e9b2c7c709de7 (patch)
tree35e375d82992dd411b732c90e5f4b9c844f4cad4 /core/src/ch
parent428fbc2d6b4e5d1bffcbb9a92ce1760e56363a55 (diff)
downloadgdx-boardgame-5b60a935ad1f82ae08c936df5e1e9b2c7c709de7.zip
gdx-boardgame-5b60a935ad1f82ae08c936df5e1e9b2c7c709de7.tar.gz
Piece : syntax
Diffstat (limited to 'core/src/ch')
-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)
);
}