summaryrefslogtreecommitdiffhomepage
path: root/loader/wall-traits.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-02-11 02:15:08 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-02-11 08:49:52 +0100
commit7abfbd9961072bb4e358c675d417cc8e8bb16d70 (patch)
tree0d6adff5305e35561429d9267383b88200bbd13c /loader/wall-traits.cpp
parentc6abddc2349685a9476b6838a59893a17e443d2f (diff)
wip atlas
Diffstat (limited to 'loader/wall-traits.cpp')
-rw-r--r--loader/wall-traits.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/loader/wall-traits.cpp b/loader/wall-traits.cpp
index 70d729c0..182d30b2 100644
--- a/loader/wall-traits.cpp
+++ b/loader/wall-traits.cpp
@@ -24,15 +24,14 @@ String& wall_traits::name_of(Cell& x) { return x.name; }
void wall_traits::ensure_atlases_loaded(Storage& s)
{
- fm_assert(s.name_map.empty());
-
+ fm_debug_assert(s.name_map.empty());
s.cell_array = wall_cell::load_atlases_from_json().vec;
s.name_map[loader.INVALID] = -1uz;
}
auto wall_traits::make_invalid_atlas(Storage& s) -> Pointer<Cell>
{
- fm_assert(!s.invalid_atlas);
+ fm_debug_assert(!s.invalid_atlas);
constexpr auto name = loader_::INVALID;
constexpr auto frame_size = Vector2ui{tile_size_xy, tile_size_z};