From f6d7e8a9bf78c96c660773f266ed3fee142b9161 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sun, 10 Nov 2024 21:08:49 +0500 Subject: fix: purr sound didn't count as sfx --- core/src/kz/ilotterytea/maxon/player/DecalPlayer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/kz/ilotterytea/maxon/player/DecalPlayer.java b/core/src/kz/ilotterytea/maxon/player/DecalPlayer.java index e7871e5..b4a02e3 100644 --- a/core/src/kz/ilotterytea/maxon/player/DecalPlayer.java +++ b/core/src/kz/ilotterytea/maxon/player/DecalPlayer.java @@ -13,6 +13,7 @@ import com.badlogic.gdx.math.collision.Ray; import com.badlogic.gdx.utils.Disposable; import com.badlogic.gdx.utils.Timer; import kz.ilotterytea.maxon.MaxonGame; +import kz.ilotterytea.maxon.constants.SettingsConstants; import kz.ilotterytea.maxon.utils.OsUtils; import java.util.ArrayList; @@ -88,7 +89,7 @@ public class DecalPlayer implements Disposable { savegame.increaseMoney(1); Sound sound = MaxonGame.getInstance().assetManager.get("sfx/player/purr.ogg", Sound.class); - sound.play(); + sound.play(MaxonGame.getInstance().prefs.getInteger(SettingsConstants.SFX_NAME, 10) / 10f); clickStreak++; } -- cgit v1.2.3