apply steps at the end

This commit is contained in:
2025-07-28 14:28:14 +02:00
parent 47b5a281fc
commit 4128b7fbb7

View File

@@ -3,8 +3,6 @@
#include <td/simulation/system/EntityMove.h>
#include <td/simulation/CommandApply.h>
#define ADD_SYSTEM(class) std::move(std::make_unique<class>())
namespace td {
namespace sim {
@@ -15,8 +13,8 @@ WorldTicker::WorldTicker() {
WorldSnapshot WorldTicker::NextStep(
const game::World& a_World, WorldSnapshot& a_PreviousState, const protocol::LockStep& a_LockStep, FpFloat a_Delta) {
WorldSnapshot next = CreateNext(a_PreviousState);
ApplySteps(a_World, next, a_LockStep); // maybe swap with tick ?
Tick(a_World, next, a_Delta);
ApplySteps(a_World, next, a_LockStep);
return next;
}