summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/game/map
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-03-31 19:54:56 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2016-03-31 19:54:56 +0200
commitbd48aec74bfaae670ec0bb9eae6d9d1b537ef10a (patch)
tree98c22802e8ad49f80fc7b8f89229989d9aa392ad /core/src/ch/asynk/rustanddust/game/map
parent1a658958d658a5e308b30c2e89aaa3aae223bbad (diff)
downloadRustAndDust-bd48aec74bfaae670ec0bb9eae6d9d1b537ef10a.zip
RustAndDust-bd48aec74bfaae670ec0bb9eae6d9d1b537ef10a.tar.gz
Ctrl: add Event.Type.ANIMATIONS_DONE and use it
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game/map')
-rw-r--r--core/src/ch/asynk/rustanddust/game/map/Map3Animations.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/map/Map3Animations.java b/core/src/ch/asynk/rustanddust/game/map/Map3Animations.java
index c97d332..d6614f1 100644
--- a/core/src/ch/asynk/rustanddust/game/map/Map3Animations.java
+++ b/core/src/ch/asynk/rustanddust/game/map/Map3Animations.java
@@ -140,8 +140,7 @@ public abstract class Map3Animations extends Map2Moves implements MoveToAnimatio
if (soundId >= 0) {
addAnimation( SoundAnimation.get(SoundAnimation.Action.FADE_OUT, sound, soundId, game.config.fxVolume, 0.5f));
soundId = -1;
- return;
- }
- game.ctrl.animationsOver();
+ } else
+ game.ctrl.postAnimationsDone();
}
}