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/StarNameplatePainter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/frontend/StarNameplatePainter.cpp') diff --git a/source/frontend/StarNameplatePainter.cpp b/source/frontend/StarNameplatePainter.cpp index 06ffabb..c6bfe8a 100644 --- a/source/frontend/StarNameplatePainter.cpp +++ b/source/frontend/StarNameplatePainter.cpp @@ -28,7 +28,7 @@ NameplatePainter::NameplatePainter() { m_nametags.setMovementThreshold(nametagConfig.getFloat("movementThreshold")); } -void NameplatePainter::update(WorldClientPtr const& world, WorldCamera const& camera, bool inspectionMode) { +void NameplatePainter::update(float dt, WorldClientPtr const& world, WorldCamera const& camera, bool inspectionMode) { m_camera = camera; Set foundEntities; @@ -70,7 +70,7 @@ void NameplatePainter::update(WorldClientPtr const& world, WorldCamera const& ca }); m_entitiesWithNametags = move(foundEntities); - m_nametags.update(); + m_nametags.update(dt); } void NameplatePainter::render() { -- cgit v1.2.3