diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-29 23:11:11 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-29 23:11:11 +0100 |
commit | f50eb8f8d020ff331fa057c71d244a758a0b0425 (patch) | |
tree | 181a7c1fc0e997c3517fd0d87184f4b5d9e49f8d /core/src/ch | |
parent | 0e1c6684336f2ac96703465dbe135ccc153243e9 (diff) | |
download | RustAndDust-f50eb8f8d020ff331fa057c71d244a758a0b0425.zip RustAndDust-f50eb8f8d020ff331fa057c71d244a758a0b0425.tar.gz |
Map: silence wrong debug output
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Map.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java index 8e92966..e6554e2 100644 --- a/core/src/ch/asynk/tankontank/game/Map.java +++ b/core/src/ch/asynk/tankontank/game/Map.java @@ -268,10 +268,9 @@ public abstract class Map extends Board } })); - for (Pawn p : activatedPawns) { + for (Pawn p : activatedPawns) p.attack(target); - System.err.println(pawn); - } + if ((activatedPawns.size() == 1) && pawn.isA(Unit.UnitType.AT_GUN) && target.isHardTarget()) activatedPawns.clear(); |