From 86c6ba861f9ace14faec9c50d7a00ec6c79de719 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 2 Apr 2023 06:14:09 +0200 Subject: a --- editor/imgui.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'editor') diff --git a/editor/imgui.cpp b/editor/imgui.cpp index 5a173da7..d4bb38e9 100644 --- a/editor/imgui.cpp +++ b/editor/imgui.cpp @@ -119,12 +119,11 @@ void app::draw_clickables() for (const auto& x : M->clickable_scenery()) { auto dest = Math::Range2D(x.dest); - auto min = dest.min(), max = dest.max(), center = dest.center(); + auto min = dest.min(), max = dest.max(); draw.AddRect({ min.x(), min.y() }, { max.x(), max.y() }, color, 0, ImDrawFlags_None, thickness); if (x.slope != 0.f) { - const auto& e = *x.e; const auto bb_min = Vector2(min[0] + x.bb_min[0], min[1] + x.bb_min[1]); const auto bb_max = Vector2(min[0] + x.bb_max[0], min[1] + x.bb_max[1]); draw.AddLine({ bb_min[0], bb_min[1] }, { bb_max[0], bb_max[1] }, color, thickness); -- cgit v1.2.3