diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-12 04:05:21 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-12 04:05:21 +0100 |
| commit | 802c17175e595ddb3075465a1febc432262bcc3f (patch) | |
| tree | 99d5ecabc8d2d62a09ab32976edfb9946ce81fcf /editor/camera.cpp | |
| parent | f44e9d51013dbd153df3abc0c7b0ff1485ab65f2 (diff) | |
use Corrade's Optional<T> instead of stl
Diffstat (limited to 'editor/camera.cpp')
| -rw-r--r-- | editor/camera.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/camera.cpp b/editor/camera.cpp index bb69c626..35d24ef4 100644 --- a/editor/camera.cpp +++ b/editor/camera.cpp @@ -56,13 +56,13 @@ void app::reset_camera_offset() update_cursor_tile(cursor.pixel); } -void app::update_cursor_tile(const std::optional<Vector2i>& pixel) +void app::update_cursor_tile(const Optional<Vector2i>& pixel) { cursor.pixel = pixel; if (pixel) cursor.tile = M->pixel_to_tile(Vector2d{*pixel}); else - cursor.tile = std::nullopt; + cursor.tile = NullOpt; } } // namespace floormat |
