Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/frontend/StarQuestIndicatorPainter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/frontend/StarQuestIndicatorPainter.cpp')
-rw-r--r--source/frontend/StarQuestIndicatorPainter.cpp4
1 files changed, 2 insertions, 2 deletions
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<Animation>(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<EntityId> 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);