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/StarQuestIndicatorPainter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/frontend/StarQuestIndicatorPainter.cpp') diff --git a/source/frontend/StarQuestIndicatorPainter.cpp b/source/frontend/StarQuestIndicatorPainter.cpp index d144021..cad4ace 100644 --- a/source/frontend/StarQuestIndicatorPainter.cpp +++ b/source/frontend/StarQuestIndicatorPainter.cpp @@ -16,7 +16,7 @@ AnimationPtr indicatorAnimation(String indicatorPath) { return make_shared(assets->json(indicatorPath), indicatorPath); } -void QuestIndicatorPainter::update(WorldClientPtr const& world, WorldCamera const& camera) { +void QuestIndicatorPainter::update(float dt, WorldClientPtr const& world, WorldCamera const& camera) { m_camera = camera; Set foundIndicators; @@ -30,7 +30,7 @@ void QuestIndicatorPainter::update(WorldClientPtr const& world, WorldCamera cons if (auto currentIndicator = m_indicators.ptr(entity->entityId())) { currentIndicator->screenPos = screenPos; if (currentIndicator->indicatorName == indicator->indicatorImage) { - currentIndicator->animation->update(WorldTimestep); + currentIndicator->animation->update(dt); } else { currentIndicator->indicatorName = indicator->indicatorImage; currentIndicator->animation = indicatorAnimation(indicator->indicatorImage); -- cgit v1.2.3