summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/game/states/GameStateCommon.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/states/GameStateCommon.java b/core/src/ch/asynk/tankontank/game/states/GameStateCommon.java
index 8b921f7..eb45d51 100644
--- a/core/src/ch/asynk/tankontank/game/states/GameStateCommon.java
+++ b/core/src/ch/asynk/tankontank/game/states/GameStateCommon.java
@@ -95,8 +95,8 @@ public abstract class GameStateCommon implements GameState
map.enableOverlayOn(hex, Hex.BLUE, true);
}
- protected boolean downIsHex()
+ protected boolean sameHexes(GridPoint2 a, GridPoint2 b)
{
- return ((downHex.x == hex.x) && (upHex.y == hex.y));
+ return ((a.x == b.x) && (a.y == b.y));
}
}