diff options
Diffstat (limited to 'core/src/ch/asynk/gdx/boardgame')
-rw-r--r-- | core/src/ch/asynk/gdx/boardgame/boards/HexBoard.java | 3 |
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); } } |