fix StepUpdate typos (oops)
This commit is contained in:
parent
647cd45dd5
commit
5a48b0383a
@ -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();
|
||||||
|
@ -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()));
|
||||||
|
Loading…
Reference in New Issue
Block a user