diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-08 14:15:47 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-08 14:28:06 +0200 |
commit | c908c0cc43211d9937340b2a0704e8c53241b035 (patch) | |
tree | 27ace4aa19c9707e3da7065e343c2c321dbef559 /main | |
parent | 54965220ebe8f0c1cecb6d1cfec856c979aaa92d (diff) |
src: even less explicit global_coords ctor
Diffstat (limited to 'main')
-rw-r--r-- | main/draw.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 |