summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-04-13 02:47:34 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-04-13 02:47:34 +0200
commit386263c8c65ba140e85961775fb8858ed1e65bc4 (patch)
tree8bdb97bb15c1ea187b99e8a52e020cf532aef833 /src
parente1d3607fb443109f1ae49a4765b9e2c5a7998a1b (diff)
a
Diffstat (limited to 'src')
-rw-r--r--src/camera-offset.cpp4
1 files changed, 1 insertions, 3 deletions
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})