summaryrefslogtreecommitdiffhomepage
path: root/main/draw.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main/draw.cpp')
-rw-r--r--main/draw.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/draw.cpp b/main/draw.cpp
index 3b7c1c42..0607c244 100644
--- a/main/draw.cpp
+++ b/main/draw.cpp
@@ -77,7 +77,7 @@ void main_impl::draw_world() noexcept
bool main_impl::check_chunk_visible(const Vector2d& offset, const Vector2i& size) noexcept
{
- constexpr Vector3d len = dTILE_SIZE * Vector3d(TILE_MAX_DIM, TILE_MAX_DIM, 0);
+ constexpr Vector3d len = dTILE_SIZE * TILE_MAX_DIM20d;
enum : std::size_t { x, y, };
constexpr Vector2d p00 = tile_shader::project(Vector3d(0, 0, 0)),
p10 = tile_shader::project(Vector3d(len[x], 0, 0)),