diff options
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Map.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java index ca1fffd..eca6e64 100644 --- a/core/src/ch/asynk/tankontank/game/Map.java +++ b/core/src/ch/asynk/tankontank/game/Map.java @@ -354,12 +354,17 @@ public abstract class Map extends Board { moveableUnits.remove(unit); activatedUnits.add(unit); + playMoveSound(unit); + return moveableUnits.size(); + } + + private void playMoveSound(Unit unit) + { if (unit.isA(Unit.UnitType.INFANTRY)) sound = infantryMoveSound; else sound = tankMoveSound; soundId = sound.play(ctrl.cfg.fxVolume); - return moveableUnits.size(); } private RunnableAnimation notifyDoneAnimation(final Unit unit) |