summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-10-30 22:53:21 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-10-30 22:53:21 +0100
commit95f7198f5a8c7ec18a62ead32d58b61ed1625669 (patch)
tree657724c8829d11b552bbbecac824dc669081c851 /core
parent9dd2e3d2325da7b9e1c6c41f3dfb86341b00c899 (diff)
downloadRustAndDust-95f7198f5a8c7ec18a62ead32d58b61ed1625669.zip
RustAndDust-95f7198f5a8c7ec18a62ead32d58b61ed1625669.tar.gz
SearchBoard: remove unnecessary check on last Node
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/rustanddust/engine/SearchBoard.java3
1 files changed, 0 insertions, 3 deletions
diff --git a/core/src/ch/asynk/rustanddust/engine/SearchBoard.java b/core/src/ch/asynk/rustanddust/engine/SearchBoard.java
index 59e3b2e..a165e67 100644
--- a/core/src/ch/asynk/rustanddust/engine/SearchBoard.java
+++ b/core/src/ch/asynk/rustanddust/engine/SearchBoard.java
@@ -348,9 +348,6 @@ public class SearchBoard
{
if (!lineOfSight(from.col, from.row, to.col, to.row, true))
return false;
- Node last = los.get(los.size() -1);
- if ((last.col != to.col) || (last.row != to.row))
- return false;
return validateFireAngle(angleOfAttack, los);
}