fix StepUpdate typos (oops)

This commit is contained in:
Kae 2024-03-18 22:09:48 +11:00
parent 647cd45dd5
commit 5a48b0383a
2 changed files with 2 additions and 2 deletions

View File

@ -1105,7 +1105,7 @@ void PongPacket::write(DataStream& ds) const {
StepUpdatePacket::StepUpdatePacket() : remoteTime(0.0) {} StepUpdatePacket::StepUpdatePacket() : remoteTime(0.0) {}
StepUpdatePacket::StepUpdatePacket(double remoteStep) : remoteTime(remoteTime) {} StepUpdatePacket::StepUpdatePacket(double remoteTime) : remoteTime(remoteTime) {}
void StepUpdatePacket::readLegacy(DataStream& ds) { void StepUpdatePacket::readLegacy(DataStream& ds) {
auto steps = ds.readVlqU(); auto steps = ds.readVlqU();

View File

@ -1437,7 +1437,7 @@ void WorldClient::queueUpdatePackets(bool sendEntityUpdates) {
auto assets = root.assets(); auto assets = root.assets();
auto entityFactory = root.entityFactory(); 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) if (m_currentStep % m_clientConfig.getInt("worldClientStateUpdateDelta") == 0)
m_outgoingPackets.append(make_shared<WorldClientStateUpdatePacket>(m_clientState.writeDelta())); m_outgoingPackets.append(make_shared<WorldClientStateUpdatePacket>(m_clientState.writeDelta()));