summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-11-22 20:04:26 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-11-22 20:04:26 +0100
commitb4008960993debf83d0a16b897fc7974c6c9aba1 (patch)
tree2684a8e43c15f064d2adb6f460a656842b4006a9 /core/src
parent80fae7a712a2a0f5263d8680f41a8db51470015f (diff)
downloadRustAndDust-b4008960993debf83d0a16b897fc7974c6c9aba1.zip
RustAndDust-b4008960993debf83d0a16b897fc7974c6c9aba1.tar.gz
Map: fix setFightAnimation(...) remove target on success
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/tankontank/game/Map.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java
index 56f9915..1d5faf6 100644
--- a/core/src/ch/asynk/tankontank/game/Map.java
+++ b/core/src/ch/asynk/tankontank/game/Map.java
@@ -317,7 +317,7 @@ public abstract class Map extends Board
}
}
- private void setFightAnimation(Unit target, boolean success)
+ private void setFightAnimation(final Unit target, boolean success)
{
AnimationSequence seq = AnimationSequence.get(success ? 3 : 2);
SpriteAnimation e = (success ? explosions : explosion);
@@ -325,10 +325,8 @@ public abstract class Map extends Board
seq.addAnimation(e);
if (success) {
seq.addAnimation(RunnableAnimation.get(target, new Runnable() {
- @Override
- public void run() {
- animationDone();
- }
+ @Override
+ public void run() { removePawn(target); }
}));
}
seq.addAnimation(notifyDoneAnimation(target));