From 4128b7fbb74f5ad6b37ad6aaadec1d6a359dba7a Mon Sep 17 00:00:00 2001 From: Persson-dev Date: Mon, 28 Jul 2025 14:28:14 +0200 Subject: [PATCH] apply steps at the end --- src/td/simulation/WorldTicker.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/td/simulation/WorldTicker.cpp b/src/td/simulation/WorldTicker.cpp index fcebd0d..88f465d 100644 --- a/src/td/simulation/WorldTicker.cpp +++ b/src/td/simulation/WorldTicker.cpp @@ -3,8 +3,6 @@ #include #include -#define ADD_SYSTEM(class) std::move(std::make_unique()) - 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; }