From cf4f56fcf78f27d3a6dbb67e5f4c45af6aff0e91 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 25 May 2024 22:28:59 -0500 Subject: [PATCH] [jasper/world/studio] Fix tile drop to handle dropping to edges of selection --- .../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 c54ce03..435e8d5 100644 --- a/src/jasper/modules/world/src/studio/worldeditor/worldeditor-imgui.cpp +++ b/src/jasper/modules/world/src/studio/worldeditor/worldeditor-imgui.cpp @@ -90,7 +90,7 @@ constexpr studio::Selection fbPtToTileAddr( [[nodiscard]] constexpr bool inside(auto const val, int const min, int const max) noexcept { auto const v = static_cast(val); - return v < max && v > min; + return v <= max && v >= min; }; WorldEditorImGui::WorldEditorImGui(studio::StudioContext &sctx, ox::StringView path):