summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-30 14:04:04 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-30 14:04:04 +0100
commit0b6b0a4a3bcdc0741a06b724e0086160c3d0beae (patch)
tree908a218b6e845b162ef31a57afb04a6402168704 /core/src/ch/asynk/tankontank
parent14129494bff4d601a90403eb1c6077474e70cad1 (diff)
downloadRustAndDust-0b6b0a4a3bcdc0741a06b724e0086160c3d0beae.zip
RustAndDust-0b6b0a4a3bcdc0741a06b724e0086160c3d0beae.tar.gz
SearchBoard: must be carefull with boolean inMap(int col, int row)
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r--core/src/ch/asynk/tankontank/engine/SearchBoard.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/SearchBoard.java b/core/src/ch/asynk/tankontank/engine/SearchBoard.java
index f2b4af1..a921d2a 100644
--- a/core/src/ch/asynk/tankontank/engine/SearchBoard.java
+++ b/core/src/ch/asynk/tankontank/engine/SearchBoard.java
@@ -85,6 +85,7 @@ public class SearchBoard
this.possiblePathsFilters = new ArrayList<Node>(5);
}
+ // FIXME be carefull with this if I expand the size of the board to be bigger than the playable size
private boolean inMap(int col, int row)
{
if ((row < 0) || (row >= rows))