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/engine/SearchBoard.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/SearchBoard.java b/core/src/ch/asynk/tankontank/engine/SearchBoard.java
index a9cee78..6131a69 100644
--- a/core/src/ch/asynk/tankontank/engine/SearchBoard.java
+++ b/core/src/ch/asynk/tankontank/engine/SearchBoard.java
@@ -63,11 +63,11 @@ public class SearchBoard
private Node getNode(int col, int row)
{
- int colOffset = ((row +1) / 2);
+ int colOffset = ((row + 1) / 2);
if ((col < colOffset) || (row < 0) || (row >= rows) || ((col - colOffset) >= cols))
return null;
- return nodes[((col - ((row + 1) / 2))) + (row * cols)];
+ return nodes[((col - colOffset)) + (row * cols)];
}
public void adjacentMoves(Node src)