summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2020-07-07 14:30:05 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2020-07-07 14:30:05 +0200
commit3d220da8560c3afce889c9ad0642043b91cbaab8 (patch)
tree70b0793c3a9d8bfc656223f3835bc36d212274fc
parentdacf116e1bbeb1bec86993cd145f8f9a201e9551 (diff)
downloadgdx-boardgame-3d220da8560c3afce889c9ad0642043b91cbaab8.zip
gdx-boardgame-3d220da8560c3afce889c9ad0642043b91cbaab8.tar.gz
HexBoard : tiny fix
-rw-r--r--core/src/ch/asynk/gdx/boardgame/boards/HexBoard.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/boards/HexBoard.java b/core/src/ch/asynk/gdx/boardgame/boards/HexBoard.java
index 21277d8..2e4079b 100644
--- a/core/src/ch/asynk/gdx/boardgame/boards/HexBoard.java
+++ b/core/src/ch/asynk/gdx/boardgame/boards/HexBoard.java
@@ -291,8 +291,7 @@ public class HexBoard implements Board
if ((y0 % 2) == 0) {
dx += xs;
} else {
- dx -= xs;
- Math.abs(dx);
+ dx = Math.abs(dx - xs);
}
}