From c908c0cc43211d9937340b2a0704e8c53241b035 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 8 Apr 2023 14:15:47 +0200 Subject: src: even less explicit global_coords ctor --- main/draw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main') diff --git a/main/draw.cpp b/main/draw.cpp index 44785f61..9adb38a2 100644 --- a/main/draw.cpp +++ b/main/draw.cpp @@ -66,7 +66,7 @@ global_coords main_impl::pixel_to_tile(Vector2d position) const noexcept { auto vec = pixel_to_tile_(position); const auto x = (int32_t)std::floor(vec[0]), y = (int32_t)std::floor(vec[1]); - return { x, y }; + return { x, y, 0 }; } Vector2d main_impl::pixel_to_tile_(Vector2d position) const noexcept -- cgit v1.2.3