Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/client/StarClientApplication.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-06-26 19:25:37 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-06-26 19:25:37 +1000
commit68d20787cf8540ebc22a45e6e82afbf8ad4dea15 (patch)
treedd9e900c85120fb76749e02085686c836f082ae9 /source/client/StarClientApplication.cpp
parent4b9b02783f1bbfc1049e11b606883c5cfa0b215e (diff)
The camera is now also an audio listener
Diffstat (limited to 'source/client/StarClientApplication.cpp')
-rw-r--r--source/client/StarClientApplication.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/client/StarClientApplication.cpp b/source/client/StarClientApplication.cpp
index b53a9c1..542e41b 100644
--- a/source/client/StarClientApplication.cpp
+++ b/source/client/StarClientApplication.cpp
@@ -408,6 +408,7 @@ void ClientApplication::changeState(MainAppState newState) {
m_universeClient.reset();
m_mainMixer->setUniverseClient({});
+ m_mainMixer->setWorldPainter({});
m_titleScreen.reset();
}
@@ -535,6 +536,7 @@ void ClientApplication::changeState(MainAppState newState) {
m_worldPainter = make_shared<WorldPainter>();
m_mainInterface = make_shared<MainInterface>(m_universeClient, m_worldPainter, m_cinematicOverlay);
+ m_mainMixer->setWorldPainter(m_worldPainter);
if (auto renderer = Application::renderer()) {
m_worldPainter->renderInit(renderer);