From 7207ae449d5cf691fab62841e6201b05f0e762e1 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 15 Mar 2023 19:50:57 +0100 Subject: a --- editor/scenery-editor.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'editor/scenery-editor.cpp') diff --git a/editor/scenery-editor.cpp b/editor/scenery-editor.cpp index 9e9aa47b..73705056 100644 --- a/editor/scenery-editor.cpp +++ b/editor/scenery-editor.cpp @@ -7,8 +7,7 @@ namespace floormat { -using rotation_ = rotation; -using rotation_t = std::underlying_type_t; +using rotation_t = std::underlying_type_t; scenery_editor::scenery_::operator bool() const noexcept { @@ -20,7 +19,7 @@ scenery_editor::scenery_editor() noexcept load_atlases(); } -void scenery_editor::set_rotation(rotation_ r) +void scenery_editor::set_rotation(enum rotation r) { auto& s = _selected.proto; s.bbox_offset = rotate_point(s.bbox_offset, s.r, r); @@ -28,7 +27,7 @@ void scenery_editor::set_rotation(rotation_ r) s.r = r; } -rotation_ scenery_editor::rotation() const +enum rotation scenery_editor::rotation() const { return _selected.proto.r; } -- cgit v1.2.3