From 5d4af474b1b52e3226fa586869b11a690ad825fc Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Tue, 28 May 2024 21:24:16 -0500 Subject: [PATCH] [jasper/world/studio] Cleanup --- .../modules/world/src/studio/worldeditor/worldeditor-imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jasper/modules/world/src/studio/worldeditor/worldeditor-imgui.cpp b/src/jasper/modules/world/src/studio/worldeditor/worldeditor-imgui.cpp index 65d8cd7..07c42af 100644 --- a/src/jasper/modules/world/src/studio/worldeditor/worldeditor-imgui.cpp +++ b/src/jasper/modules/world/src/studio/worldeditor/worldeditor-imgui.cpp @@ -432,7 +432,7 @@ bool WorldEditorImGui::tileSelected(ox::Point const&pt) const noexcept { return false; } auto const&sel = *m_selection; - return inside(pt.x, sel.a.x, sel.b.x) && inside(pt.y, sel.a.y, sel.b.y); + return sel.contains(pt); } void WorldEditorImGui::clearSelection() noexcept {