diff options
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 |
