mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 17:58:01 +00:00
- Fix double music playback in the inn.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package forge.adventure.scene;
|
||||
|
||||
import com.badlogic.gdx.audio.Sound;
|
||||
import com.badlogic.gdx.scenes.scene2d.ui.Image;
|
||||
import com.github.tommyettinger.textra.TextraButton;
|
||||
import com.github.tommyettinger.textra.TextraLabel;
|
||||
@@ -12,6 +13,7 @@ import forge.adventure.util.AdventureEventController;
|
||||
import forge.adventure.util.Controls;
|
||||
import forge.adventure.util.Current;
|
||||
import forge.adventure.world.WorldSave;
|
||||
import forge.sound.MusicPlaylist;
|
||||
import forge.sound.SoundSystem;
|
||||
|
||||
/**
|
||||
@@ -99,7 +101,8 @@ public class InnScene extends UIScene {
|
||||
public void enter() {
|
||||
super.enter();
|
||||
refreshStatus();
|
||||
SoundSystem.instance.pause();
|
||||
GameHUD.getInstance().pauseMusic();
|
||||
SoundSystem.instance.setBackgroundMusic(MusicPlaylist.TOWN);
|
||||
}
|
||||
|
||||
private void refreshStatus(){
|
||||
|
||||
Reference in New Issue
Block a user