diff options
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/SearchBoard.java | 4 |
1 files changed, 1 insertions, 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); |