diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-20 23:25:32 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-20 23:25:32 +0200 |
| commit | 4213fa8a986ccfdf03783638862a9aacf3ea8601 (patch) | |
| tree | e1d78e3dcc74ce6c2605ff31e035fb7e4ad36453 /main/editor.cpp | |
| parent | d22abc50862f7243228c93fd2fd3878b37821487 (diff) | |
rename macros
Diffstat (limited to 'main/editor.cpp')
| -rw-r--r-- | main/editor.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/main/editor.cpp b/main/editor.cpp index 38697a30..cfe793b9 100644 --- a/main/editor.cpp +++ b/main/editor.cpp @@ -51,7 +51,7 @@ std::shared_ptr<tile_atlas> tile_type::atlas(Containers::StringView str) if (auto ptr = maybe_atlas(str); ptr) return ptr; else - ABORT("no such atlas: %s", str.cbegin()); + fm_abort("no such atlas: %s", str.cbegin()); } void tile_type::clear_selection() @@ -63,7 +63,7 @@ void tile_type::clear_selection() void tile_type::select_tile(const std::shared_ptr<tile_atlas>& atlas, std::uint8_t variant) { - ASSERT(atlas); + fm_assert(atlas); clear_selection(); _selection_mode = sel_tile; _selected_tile = { atlas, variant }; @@ -71,7 +71,7 @@ void tile_type::select_tile(const std::shared_ptr<tile_atlas>& atlas, std::uint8 void tile_type::select_tile_permutation(const std::shared_ptr<tile_atlas>& atlas) { - ASSERT(atlas); + fm_assert(atlas); clear_selection(); _selection_mode = sel_perm; _permutation = { atlas, {} }; @@ -79,13 +79,13 @@ void tile_type::select_tile_permutation(const std::shared_ptr<tile_atlas>& atlas bool tile_type::is_tile_selected(const std::shared_ptr<tile_atlas>& atlas, std::uint8_t variant) { - ASSERT(atlas); + fm_assert(atlas); return _selection_mode == sel_tile && _selected_tile == std::make_tuple(atlas, variant); } bool tile_type::is_permutation_selected(const std::shared_ptr<tile_atlas>& atlas) { - ASSERT(atlas); + fm_assert(atlas); return _selection_mode == sel_perm && std::get<0>(_permutation) == atlas; } @@ -135,7 +135,7 @@ void tile_type::place_tile(world& world, global_coords pos) switch (_mode) { case editor_mode::select: - WARN("wrong tile mode 'select'"); break; + fm_warn("wrong tile mode 'select'"); break; case editor_mode::floor: case editor_mode::walls: |
