summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-29 22:54:12 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-29 22:54:12 +0100
commit0e1c6684336f2ac96703465dbe135ccc153243e9 (patch)
tree0bac1a32ba59291f0f69eb45aef47f638a4cf5a7 /core
parent4a2ea387eca2562ebda13b2456aa29ad4659d1e8 (diff)
downloadRustAndDust-0e1c6684336f2ac96703465dbe135ccc153243e9.zip
RustAndDust-0e1c6684336f2ac96703465dbe135ccc153243e9.tar.gz
SearchBoard: collectAttack(...) do not yell when the angle attack is not OK, it's OK
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/engine/SearchBoard.java4
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);