Fix becoming deaf to positional audio after returning to the title

This commit is contained in:
Kae 2023-06-27 21:04:46 +10:00
parent baf3a1cf76
commit 359624119a

View File

@ -403,7 +403,6 @@ void ClientApplication::changeState(MainAppState newState) {
if (oldState > MainAppState::Title && m_state == MainAppState::Title) { if (oldState > MainAppState::Title && m_state == MainAppState::Title) {
m_titleScreen->resetState(); m_titleScreen->resetState();
m_mainMixer->setUniverseClient({}); m_mainMixer->setUniverseClient({});
m_mainMixer->setWorldPainter({});
} }
if (oldState >= MainAppState::Title && m_state < MainAppState::Title) { if (oldState >= MainAppState::Title && m_state < MainAppState::Title) {
m_playerStorage.reset(); m_playerStorage.reset();
@ -415,7 +414,6 @@ void ClientApplication::changeState(MainAppState newState) {
m_universeClient.reset(); m_universeClient.reset();
m_mainMixer->setUniverseClient({}); m_mainMixer->setUniverseClient({});
m_mainMixer->setWorldPainter({});
m_titleScreen.reset(); m_titleScreen.reset();
} }