summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-29 00:52:09 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-29 00:52:09 +0100
commitba7226c24803192f10317147306f2c3047c7e823 (patch)
treef050097d26ad74368a8dd827d4fa7168c5931381 /core/src/ch/asynk/tankontank
parent01c76e439e4b40cab40bd0a9aa3999658209ba55 (diff)
downloadRustAndDust-ba7226c24803192f10317147306f2c3047c7e823.zip
RustAndDust-ba7226c24803192f10317147306f2c3047c7e823.tar.gz
Map: fix collectPossibleTargets(...) call
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r--core/src/ch/asynk/tankontank/game/Map.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java
index c8c80bc..5cd9848 100644
--- a/core/src/ch/asynk/tankontank/game/Map.java
+++ b/core/src/ch/asynk/tankontank/game/Map.java
@@ -158,8 +158,8 @@ public abstract class Map extends Board
possibleTargets.clear();
return 0;
}
- // return buildPossibleTargets(pawn, possibleTargets);
- return buildPossibleTargets(pawn, possibleTargets);
+ // return collectPossibleTargets(pawn, possibleTargets);
+ return collectPossibleTargets(pawn, foes, possibleTargets);
}
public int collectMoveablePawns(Pawn pawn)