From 3d220da8560c3afce889c9ad0642043b91cbaab8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 7 Jul 2020 14:30:05 +0200 Subject: HexBoard : tiny fix --- core/src/ch/asynk/gdx/boardgame/boards/HexBoard.java | 3 +-- 1 file changed, 1 insertion(+), 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); } } -- cgit v1.1-2-g2b99