summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-09-29 23:45:53 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-09-29 23:45:53 +0200
commit9d0a18198656df48db89aee2f9925111051848f1 (patch)
tree646a725d432211460841dc46715e48664c901296 /core
parent7dfd8c43375e87b1ca14242ed83b8970819e51fb (diff)
downloadRustAndDust-9d0a18198656df48db89aee2f9925111051848f1.zip
RustAndDust-9d0a18198656df48db89aee2f9925111051848f1.tar.gz
SearchBoard: coding style
Diffstat (limited to 'core')
-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)