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/StarErrorScreen.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/frontend/StarErrorScreen.cpp') diff --git a/source/frontend/StarErrorScreen.cpp b/source/frontend/StarErrorScreen.cpp index 9162e5b..1dc5f12 100644 --- a/source/frontend/StarErrorScreen.cpp +++ b/source/frontend/StarErrorScreen.cpp @@ -70,12 +70,12 @@ bool ErrorScreen::handleInputEvent(InputEvent const& event) { return m_paneManager->sendInputEvent(event); } -void ErrorScreen::update() { - m_paneManager->update(); +void ErrorScreen::update(float dt) { + m_paneManager->update(dt); + m_cursor.update(dt); } void ErrorScreen::renderCursor() { - m_cursor.update(WorldTimestep); Vec2I cursorPos = m_cursorScreenPos; Vec2I cursorSize = m_cursor.size(); Vec2I cursorOffset = m_cursor.offset(); -- cgit v1.2.3