summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/local-coords.hpp4
-rw-r--r--src/tile-atlas.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/local-coords.hpp b/src/local-coords.hpp
index f5615f9a..1e7fbbed 100644
--- a/src/local-coords.hpp
+++ b/src/local-coords.hpp
@@ -20,7 +20,7 @@ constexpr local_coords::local_coords(std::size_t index) noexcept :
x{(std::uint8_t)(index % TILE_MAX_DIM)},
y{(std::uint8_t)(index / TILE_MAX_DIM)}
{
- ASSERT(index < TILE_COUNT);
+ fm_assert(index < TILE_COUNT);
}
template<std::integral T>
@@ -28,7 +28,7 @@ requires (sizeof(T) <= sizeof(std::size_t))
constexpr local_coords::local_coords(T x, T y) noexcept
: x{(std::uint8_t)x}, y{(std::uint8_t)y}
{
- ASSERT(static_cast<std::size_t>(x) < TILE_MAX_DIM && static_cast<std::size_t>(y) < TILE_MAX_DIM);
+ fm_assert(static_cast<std::size_t>(x) < TILE_MAX_DIM && static_cast<std::size_t>(y) < TILE_MAX_DIM);
}
} // namespace floormat
diff --git a/src/tile-atlas.cpp b/src/tile-atlas.cpp
index 6688536f..d08b4798 100644
--- a/src/tile-atlas.cpp
+++ b/src/tile-atlas.cpp
@@ -25,7 +25,7 @@ tile_atlas::tile_atlas(Containers::StringView name, const ImageView2D& image, Ve
std::array<Vector2, 4> tile_atlas::texcoords_for_id(std::size_t i) const
{
- ASSERT(i < (size_/dims_).product());
+ fm_assert(i < (size_/dims_).product());
return texcoords_[i];
}