From 386263c8c65ba140e85961775fb8858ed1e65bc4 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 13 Apr 2023 02:47:34 +0200 Subject: a --- src/camera-offset.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/camera-offset.cpp b/src/camera-offset.cpp index d5073bef..ad5c8818 100644 --- a/src/camera-offset.cpp +++ b/src/camera-offset.cpp @@ -16,9 +16,7 @@ with_shifted_camera_offset::with_shifted_camera_offset(tile_shader& shader, chun auto len = (last_ - first_) + Vector2i(1, 1); constexpr auto depth_start = -1 + 1.111e-16f; - int depth = TILE_MAX_DIM * pos.x() + - (int)TILE_COUNT * len.x() * pos.y() + - z * (TILE_MAX_DIM+1); + int depth = TILE_MAX_DIM * pos.x() + (int)TILE_COUNT * len.x() * pos.y(); #if 0 if (c_ == chunk_coords_{} || c_ == chunk_coords_{0, -1, 1}) -- cgit v1.2.3