From 0e1c6684336f2ac96703465dbe135ccc153243e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 29 Oct 2014 22:54:12 +0100 Subject: SearchBoard: collectAttack(...) do not yell when the angle attack is not OK, it's OK --- core/src/ch/asynk/tankontank/engine/SearchBoard.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/src/ch/asynk/tankontank/engine/SearchBoard.java b/core/src/ch/asynk/tankontank/engine/SearchBoard.java index 524614a..56b1c78 100644 --- a/core/src/ch/asynk/tankontank/engine/SearchBoard.java +++ b/core/src/ch/asynk/tankontank/engine/SearchBoard.java @@ -361,10 +361,8 @@ public class SearchBoard if ((last.col != col1) || (last.row != row1)) return false; - if (!validatePathAngle(pawn.getAngleOfAttack(), los)) { - System.err.println("ERROR: angleOfAttack is not respected, please report"); + if (!validatePathAngle(pawn.getAngleOfAttack(), los)) return false; - } pawn.attack.isClear = true; pawn.attack.isFlank = isFlankAttack(target.getFlankSides(), los); -- cgit v1.1-2-g2b99