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/StarScriptPane.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/frontend/StarScriptPane.cpp') diff --git a/source/frontend/StarScriptPane.cpp b/source/frontend/StarScriptPane.cpp index 3de3c26..2cd74a5 100644 --- a/source/frontend/StarScriptPane.cpp +++ b/source/frontend/StarScriptPane.cpp @@ -47,11 +47,11 @@ void ScriptPane::dismissed() { m_script.removeCallbacks("world"); } -void ScriptPane::tick() { +void ScriptPane::tick(float dt) { if (m_sourceEntityId != NullEntityId && !m_client->worldClient()->playerCanReachEntity(m_sourceEntityId)) dismiss(); - BaseScriptPane::tick(); + BaseScriptPane::tick(dt); } PanePtr ScriptPane::createTooltip(Vec2I const& screenPosition) { -- cgit v1.2.3