From e2a34ca60ff6fa160b0469fa7c01df8359be22ee Mon Sep 17 00:00:00 2001 From: MatusGuy <85036874+MatusGuy@users.noreply.github.com> Date: Tue, 2 Jan 2024 20:55:09 +0000 Subject: [PATCH] Fix range indicator for circle platform --- src/object/circleplatform.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/object/circleplatform.cpp b/src/object/circleplatform.cpp index 9547f485e2b..088e8886dd1 100644 --- a/src/object/circleplatform.cpp +++ b/src/object/circleplatform.cpp @@ -96,8 +96,8 @@ CirclePlatform::draw(DrawingContext& context) if (Editor::is_active()) { - Rectf rect(Vector(start_position.x - radius + get_bbox().get_width() / 2, - start_position.y - radius + get_bbox().get_height() / 2), + Rectf rect(Vector(get_pos().x - radius + get_bbox().get_width() / 2, + get_pos().y - radius + get_bbox().get_height() / 2), Sizef(radius * 2, radius * 2)); context.color().draw_surface_scaled(m_radius_indicator, rect, m_layer); }