[jasper/world/studio] Fix tile drop to handle dropping to edges of selection
All checks were successful
Build / build (push) Successful in 3m9s

This commit is contained in:
2024-05-25 22:28:59 -05:00
parent 704434bc3c
commit cf4f56fcf7

View File

@ -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<int>(val);
return v < max && v > min;
return v <= max && v >= min;
};
WorldEditorImGui::WorldEditorImGui(studio::StudioContext &sctx, ox::StringView path):