diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-29 23:45:53 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-29 23:45:53 +0200 |
commit | 9d0a18198656df48db89aee2f9925111051848f1 (patch) | |
tree | 646a725d432211460841dc46715e48664c901296 /core/src/ch/asynk/tankontank | |
parent | 7dfd8c43375e87b1ca14242ed83b8970819e51fb (diff) | |
download | RustAndDust-9d0a18198656df48db89aee2f9925111051848f1.zip RustAndDust-9d0a18198656df48db89aee2f9925111051848f1.tar.gz |
SearchBoard: coding style
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/SearchBoard.java | 4 |
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) |