diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-15 19:50:57 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-15 19:50:57 +0100 |
commit | 7207ae449d5cf691fab62841e6201b05f0e762e1 (patch) | |
tree | aec2e7b9aff631488c89520a3ea256bacaf47d16 /editor | |
parent | f9b74550252a9eaa19d779d8b4c9647a7c20d392 (diff) |
a
Diffstat (limited to 'editor')
-rw-r--r-- | editor/scenery-editor.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
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<rotation_>; +using rotation_t = std::underlying_type_t<enum rotation>; 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; } |