summaryrefslogtreecommitdiffhomepage
path: root/src/tile-bbox.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tile-bbox.hpp')
-rw-r--r--src/tile-bbox.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tile-bbox.hpp b/src/tile-bbox.hpp
index 95dd2284..c126184c 100644
--- a/src/tile-bbox.hpp
+++ b/src/tile-bbox.hpp
@@ -1,5 +1,5 @@
#pragma once
-#include "src/tile-defs.hpp"
+#include "tile-constants.hpp"
#include "src/local-coords.hpp"
#include <Corrade/Containers/Pair.h>
#include <Magnum/Magnum.h>
@@ -9,7 +9,7 @@ namespace floormat {
constexpr Vector2 tile_start(size_t k)
{
- constexpr auto half_tile = Vector2(TILE_SIZE2)/2;
+ constexpr auto half_tile = Vector2(tile_size_xy)/2;
const local_coords coord{k};
return TILE_SIZE2 * Vector2(coord) - half_tile;
}