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

summaryrefslogtreecommitdiff
path: root/source/game/StarUniverseClient.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-04-04 14:35:36 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2024-04-04 14:35:36 +1100
commit6c896c2ef79c1740d7dea6fae95518c768de8931 (patch)
treefce5fcd1bb6b9743cee93371b7f7d7b586a455b1 /source/game/StarUniverseClient.cpp
parentbe676518f4639250376842db7e48e5aaeaad9424 (diff)
Make ping updates more accurate
Diffstat (limited to 'source/game/StarUniverseClient.cpp')
-rw-r--r--source/game/StarUniverseClient.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/game/StarUniverseClient.cpp b/source/game/StarUniverseClient.cpp
index 752d081..adc6bef 100644
--- a/source/game/StarUniverseClient.cpp
+++ b/source/game/StarUniverseClient.cpp
@@ -123,6 +123,7 @@ Maybe<String> UniverseClient::connect(UniverseConnection connection, bool allowA
m_mainPlayer->setClientContext(m_clientContext);
m_mainPlayer->setStatistics(m_statistics);
m_worldClient = make_shared<WorldClient>(m_mainPlayer);
+ m_worldClient->clientState().setLegacy(m_legacyServer);
m_worldClient->setAsyncLighting(true);
for (auto& pair : m_luaCallbacks)
m_worldClient->setLuaCallbacks(pair.first, pair.second);