From 4b0bc220e4da1173f742a4973939b139bef562db Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Fri, 21 Jul 2023 00:58:49 +1000 Subject: Support for changing the game's timescale Context-specific (like per-world) timescales can also be added later --- source/frontend/StarCraftingInterface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/frontend/StarCraftingInterface.cpp') diff --git a/source/frontend/StarCraftingInterface.cpp b/source/frontend/StarCraftingInterface.cpp index df0100a..5ad25ce 100644 --- a/source/frontend/StarCraftingInterface.cpp +++ b/source/frontend/StarCraftingInterface.cpp @@ -226,7 +226,7 @@ size_t CraftingPane::itemCount(List const& store, ItemDescriptor const& return itemDb->getCountOfItem(store, item); } -void CraftingPane::update() { +void CraftingPane::update(float dt) { // shut down if we can't reach the table anymore. if (m_sourceEntityId != NullEntityId) { auto sourceEntity = as(m_worldClient->entity(m_sourceEntityId)); @@ -296,7 +296,7 @@ void CraftingPane::update() { setLabel("lblPlayerMoney", toString((int)m_player->currency("money"))); - Pane::update(); + Pane::update(dt); } void CraftingPane::updateCraftButtons() { -- cgit v1.2.3