diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-08-15 13:38:40 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-08-15 13:38:40 +1000 |
commit | af74a2f4918e39cd3a157350b9c8e00397c94ff8 (patch) | |
tree | dd78affb139f6d154bb874ed0c274a0a43d0d8ab /source/game/StarWorldServer.cpp | |
parent | 3bc2034c15ee23f78eb20a7b7a839b3300290186 (diff) |
Rename global WorldTimestep var to more appropriate name
Diffstat (limited to 'source/game/StarWorldServer.cpp')
-rw-r--r-- | source/game/StarWorldServer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/game/StarWorldServer.cpp b/source/game/StarWorldServer.cpp index be00d1f..492ea81 100644 --- a/source/game/StarWorldServer.cpp +++ b/source/game/StarWorldServer.cpp @@ -430,7 +430,7 @@ void WorldServer::handleIncomingPackets(ConnectionId clientId, List<PacketPtr> c } } else if (auto entityUpdateSet = as<EntityUpdateSetPacket>(packet)) { - float interpolationLeadTime = clientInfo->interpolationTracker.interpolationLeadSteps() * WorldTimestep; + float interpolationLeadTime = clientInfo->interpolationTracker.interpolationLeadSteps() * GlobalTimestep; m_entityMap->forAllEntities([&](EntityPtr const& entity) { EntityId entityId = entity->entityId(); if (connectionForEntity(entityId) == clientId) { @@ -442,7 +442,7 @@ void WorldServer::handleIncomingPackets(ConnectionId clientId, List<PacketPtr> c } else if (auto entityDestroy = as<EntityDestroyPacket>(packet)) { if (auto entity = m_entityMap->entity(entityDestroy->entityId)) { - entity->readNetState(entityDestroy->finalNetState, clientInfo->interpolationTracker.interpolationLeadSteps() * WorldTimestep); + entity->readNetState(entityDestroy->finalNetState, clientInfo->interpolationTracker.interpolationLeadSteps() * GlobalTimestep); // Before destroying the entity, we should make sure that the entity is // using the absolute latest data, so we disable interpolation. entity->disableInterpolation(); @@ -636,10 +636,10 @@ void WorldServer::update(float dt) { m_fallingBlocksAgent->update(); if (auto delta = shouldRunThisStep("blockDamageUpdate")) - updateDamagedBlocks(*delta * WorldTimestep); + updateDamagedBlocks(*delta * GlobalTimestep); if (auto delta = shouldRunThisStep("worldStorageTick")) - m_worldStorage->tick(*delta * WorldTimestep); + m_worldStorage->tick(*delta * GlobalTimestep); if (auto delta = shouldRunThisStep("worldStorageGenerate")) { m_worldStorage->generateQueue(m_fidelityConfig.optUInt("worldStorageGenerationLevelLimit"), [this](WorldStorage::Sector a, WorldStorage::Sector b) { |