summaryrefslogtreecommitdiffhomepage
path: root/editor/camera.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/camera.cpp')
-rw-r--r--editor/camera.cpp4
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