summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-22 22:29:04 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-22 22:29:04 +0100
commitfbaa9d2cae81c4bea81d0fafaa1954c6d43e906c (patch)
tree32206a1b2b1ec73dc77fe4dad5c49bd3c8428346 /core/src
parent498259468be4e9f73319c9a63fb1782e8bbe5088 (diff)
downloadRustAndDust-fbaa9d2cae81c4bea81d0fafaa1954c6d43e906c.zip
RustAndDust-fbaa9d2cae81c4bea81d0fafaa1954c6d43e906c.tar.gz
Map: when destroyed call objectives.unclaim(Hex)
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/tankontank/game/Map.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java
index 1d5faf6..f78e499 100644
--- a/core/src/ch/asynk/tankontank/game/Map.java
+++ b/core/src/ch/asynk/tankontank/game/Map.java
@@ -326,7 +326,10 @@ public abstract class Map extends Board
if (success) {
seq.addAnimation(RunnableAnimation.get(target, new Runnable() {
@Override
- public void run() { removePawn(target); }
+ public void run() {
+ objectives.unclaim(target.getHex());
+ removePawn(target);
+ }
}));
}
seq.addAnimation(notifyDoneAnimation(target));