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

summaryrefslogtreecommitdiff
path: root/source/game/StarSystemWorldClient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/game/StarSystemWorldClient.cpp')
-rw-r--r--source/game/StarSystemWorldClient.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/game/StarSystemWorldClient.cpp b/source/game/StarSystemWorldClient.cpp
index 9be0980..d4f8c15 100644
--- a/source/game/StarSystemWorldClient.cpp
+++ b/source/game/StarSystemWorldClient.cpp
@@ -41,11 +41,11 @@ bool SystemWorldClient::flying() const {
return true;
}
-void SystemWorldClient::update() {
+void SystemWorldClient::update(float dt) {
if (!m_ship)
return;
- m_ship->clientUpdate(WorldTimestep);
+ m_ship->clientUpdate(dt);
auto location = m_ship->systemLocation();
if (auto uuid = location.maybe<Uuid>()) {
@@ -66,9 +66,9 @@ void SystemWorldClient::update() {
}
for (auto p : m_clientShips)
- p.second->clientUpdate(WorldTimestep);
+ p.second->clientUpdate(dt);
for (auto p : m_objects)
- p.second->clientUpdate(WorldTimestep);
+ p.second->clientUpdate(dt);
if (currentSystem().isNull()) {
m_objects.clear();