X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=src%2Fstandalone%2FMasterState.cpp;h=81017f78603cea89bca967d440089e7c26876e05;hb=150d065f431d665326fd8028748c48a74ad956bb;hp=9cc154387e3f6becb55bf756b5df29606514f2fd;hpb=80a9a59d71a7b144c12f64cbef4644751bd54745;p=blank.git diff --git a/src/standalone/MasterState.cpp b/src/standalone/MasterState.cpp index 9cc1543..81017f7 100644 --- a/src/standalone/MasterState.cpp +++ b/src/standalone/MasterState.cpp @@ -129,7 +129,8 @@ void MasterState::Handle(const SDL_Event &event) { } void MasterState::Update(int dt) { - input.Update(dt); + spawner.Update(dt); + world.Update(dt); if (input.BlockFocus()) { hud.FocusBlock(input.BlockFocus().GetChunk(), input.BlockFocus().block); } else if (input.EntityFocus()) { @@ -139,8 +140,6 @@ void MasterState::Update(int dt) { } hud.Display(res.block_types[player.GetInventorySlot() + 1]); hud.Update(dt); - spawner.Update(dt); - world.Update(dt); chunk_loader.Update(dt); chunk_renderer.Update(dt);