diff options
-rw-r--r-- | source/game/StarNetPackets.cpp | 2 | ||||
-rw-r--r-- | source/game/StarWorldClient.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/game/StarNetPackets.cpp b/source/game/StarNetPackets.cpp index dde2451..483d244 100644 --- a/source/game/StarNetPackets.cpp +++ b/source/game/StarNetPackets.cpp @@ -1105,7 +1105,7 @@ void PongPacket::write(DataStream& ds) const { StepUpdatePacket::StepUpdatePacket() : remoteTime(0.0) {} -StepUpdatePacket::StepUpdatePacket(double remoteStep) : remoteTime(remoteTime) {} +StepUpdatePacket::StepUpdatePacket(double remoteTime) : remoteTime(remoteTime) {} void StepUpdatePacket::readLegacy(DataStream& ds) { auto steps = ds.readVlqU(); diff --git a/source/game/StarWorldClient.cpp b/source/game/StarWorldClient.cpp index 1068c2b..489cc31 100644 --- a/source/game/StarWorldClient.cpp +++ b/source/game/StarWorldClient.cpp @@ -1437,7 +1437,7 @@ void WorldClient::queueUpdatePackets(bool sendEntityUpdates) { auto assets = root.assets(); auto entityFactory = root.entityFactory(); - m_outgoingPackets.append(make_shared<StepUpdatePacket>(m_currentStep)); + m_outgoingPackets.append(make_shared<StepUpdatePacket>(m_currentTime)); if (m_currentStep % m_clientConfig.getInt("worldClientStateUpdateDelta") == 0) m_outgoingPackets.append(make_shared<WorldClientStateUpdatePacket>(m_clientState.writeDelta())); |