diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2020-07-07 14:30:05 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2020-07-07 14:30:05 +0200 |
commit | 3d220da8560c3afce889c9ad0642043b91cbaab8 (patch) | |
tree | 70b0793c3a9d8bfc656223f3835bc36d212274fc /core/src | |
parent | dacf116e1bbeb1bec86993cd145f8f9a201e9551 (diff) | |
download | gdx-boardgame-3d220da8560c3afce889c9ad0642043b91cbaab8.zip gdx-boardgame-3d220da8560c3afce889c9ad0642043b91cbaab8.tar.gz |
HexBoard : tiny fix
Diffstat (limited to 'core/src')
-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); } } |