From d592633b2f9dcf00ca8851d7d4a91147b0866fef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 8 Dec 2015 14:43:09 +0100 Subject: Hud: engagementSummary() gets fxVolume frome game.config --- core/src/ch/asynk/rustanddust/game/Hud.java | 4 ++-- core/src/ch/asynk/rustanddust/game/Map.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/ch/asynk/rustanddust/game/Hud.java b/core/src/ch/asynk/rustanddust/game/Hud.java index 8dae202..7c3ff2e 100644 --- a/core/src/ch/asynk/rustanddust/game/Hud.java +++ b/core/src/ch/asynk/rustanddust/game/Hud.java @@ -298,9 +298,9 @@ public class Hud implements Disposable, Animation pushDialog(okCancel); } - public void engagementSummary(Engagement e, float volume) + public void engagementSummary(Engagement e) { - engagement.show(e, Position.BOTTOM_CENTER, volume); + engagement.show(e, Position.BOTTOM_CENTER, game.config.fxVolume); pushDialog(engagement); } diff --git a/core/src/ch/asynk/rustanddust/game/Map.java b/core/src/ch/asynk/rustanddust/game/Map.java index 5e27a1a..ecb24d0 100644 --- a/core/src/ch/asynk/rustanddust/game/Map.java +++ b/core/src/ch/asynk/rustanddust/game/Map.java @@ -515,7 +515,7 @@ public abstract class Map extends Board implements MoveToAnimationCb, ObjectiveS addAnimation(destroy); } - ctrl.hud.engagementSummary(e, ctrl.cfg.fxVolume); + ctrl.hud.engagementSummary(e); addEngagementAnimation(e.defender); if (engagementCost(e) == 0) -- cgit v1.1-2-g2b99