From fbaa9d2cae81c4bea81d0fafaa1954c6d43e906c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sat, 22 Nov 2014 22:29:04 +0100 Subject: Map: when destroyed call objectives.unclaim(Hex) --- core/src/ch/asynk/tankontank/game/Map.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)); -- cgit v1.1-2-g2b99