From ac78b25bb9ea8d66d84b8477bcce9510eb7555ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 15 Jul 2020 08:19:11 +0200 Subject: HexBoard : remove unused paramater --- core/src/ch/asynk/gdx/boardgame/boards/HexBoard.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/ch/asynk/gdx/boardgame/boards/HexBoard.java b/core/src/ch/asynk/gdx/boardgame/boards/HexBoard.java index 2ea1e39..ea01cfe 100644 --- a/core/src/ch/asynk/gdx/boardgame/boards/HexBoard.java +++ b/core/src/ch/asynk/gdx/boardgame/boards/HexBoard.java @@ -340,7 +340,7 @@ public class HexBoard implements Board if (losBlocked && !contact) { final Tile prev = tiles.get(tiles.size() - 1); Orientation o = Orientation.fromTiles(prev, t); - computeContact(from, to, prev, o, v, true); + computeContact(from, to, prev, o, v); contact = true; } tiles.add(t); @@ -412,9 +412,9 @@ public class HexBoard implements Board if (t.blocked && !contact) { Orientation o = computeOrientation(dx, dy, flat); if (!losBlocked && blocked == 0x03) { - computeContact(from, to, t, o.opposite(), v, false); + computeContact(from, to, t, o.opposite(), v); } else { - computeContact(from, to, tiles.get(tiles.size() - idx), o, v, false); + computeContact(from, to, tiles.get(tiles.size() - idx), o, v); } contact = true; } @@ -445,7 +445,7 @@ public class HexBoard implements Board } } - private void computeContact(Tile from, Tile to, Tile t, Orientation o, Vector2 v, boolean line) + private void computeContact(Tile from, Tile to, Tile t, Orientation o, Vector2 v) { float dx = to.cx - from.cx; float dy = to.cy - from.cy; -- cgit v1.1-2-g2b99