From 97b9ff462337a1888f0e7cc1e6092e290c2112a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 8 Jul 2020 12:00:41 +0200 Subject: HexBoard : tiny code clean up --- core/src/ch/asynk/gdx/boardgame/boards/HexBoard.java | 4 ++-- 1 file changed, 2 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 e76b0d0..f22b824 100644 --- a/core/src/ch/asynk/gdx/boardgame/boards/HexBoard.java +++ b/core/src/ch/asynk/gdx/boardgame/boards/HexBoard.java @@ -431,10 +431,10 @@ public class HexBoard implements Board if (dy == 1) return (vertical ? Orientation.NE : Orientation.E); else - return (vertical ? Orientation.SE : Orientation.SE); + return Orientation.SE; } else { if (dy == 1) - return (vertical ? Orientation.NW : Orientation.NW); + return Orientation.NW; else return (vertical ? Orientation.SW : Orientation.W); } -- cgit v1.1-2-g2b99