diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-19 06:25:39 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-19 06:25:39 +0200 |
| commit | bafde6416401672cc7838f02af504561d34681fb (patch) | |
| tree | 35a99b8241e19240bc339b9efbaece19ee87907e /src | |
| parent | f07d626a2661858c0c5f820bd64c7151c76a4ecd (diff) | |
a
Diffstat (limited to 'src')
| -rw-r--r-- | src/camera-offset.cpp | 2 | ||||
| -rw-r--r-- | src/camera-offset.hpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/camera-offset.cpp b/src/camera-offset.cpp index 0f90768b..f58c269c 100644 --- a/src/camera-offset.cpp +++ b/src/camera-offset.cpp @@ -1,8 +1,6 @@ #include "camera-offset.hpp" #include "tile-defs.hpp" #include "shaders/tile-shader.hpp" -#include "compat/assert.hpp" -#include <Magnum/Math/Vector2.h> namespace floormat { diff --git a/src/camera-offset.hpp b/src/camera-offset.hpp index 07b9f398..0a44ee30 100644 --- a/src/camera-offset.hpp +++ b/src/camera-offset.hpp @@ -1,4 +1,5 @@ #pragma once +#include "global-coords.hpp" #include <Magnum/Magnum.h> #include <Magnum/Math/Vector2.h> @@ -9,6 +10,7 @@ struct tile_shader; struct with_shifted_camera_offset final { explicit with_shifted_camera_offset(tile_shader& shader, short x, short y); + explicit with_shifted_camera_offset(tile_shader& shader, chunk_coords c) : with_shifted_camera_offset(shader, c.x, c.y) {} ~with_shifted_camera_offset(); private: tile_shader& _shader; // NOLINT |
