summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2020-07-08 12:00:41 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2020-07-08 12:00:41 +0200
commit97b9ff462337a1888f0e7cc1e6092e290c2112a9 (patch)
tree68b091352afee2614ab3bef1f01caa3d9545e703
parent88bddf8ebf6bcd3f07535cfe7dd6b562ce330247 (diff)
downloadgdx-boardgame-97b9ff462337a1888f0e7cc1e6092e290c2112a9.zip
gdx-boardgame-97b9ff462337a1888f0e7cc1e6092e290c2112a9.tar.gz
HexBoard : tiny code clean up
-rw-r--r--core/src/ch/asynk/gdx/boardgame/boards/HexBoard.java4
1 files 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);
}