From 95f7198f5a8c7ec18a62ead32d58b61ed1625669 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 30 Oct 2015 22:53:21 +0100 Subject: SearchBoard: remove unnecessary check on last Node --- core/src/ch/asynk/rustanddust/engine/SearchBoard.java | 3 --- 1 file changed, 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); } -- cgit v1.1-2-g2b99