From aae112ae02b415483ac03c59629dc9290bd833cf Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 12 Sep 2023 05:52:55 +0200 Subject: a --- src/camera-offset.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/camera-offset.cpp') diff --git a/src/camera-offset.cpp b/src/camera-offset.cpp index a5213397..25b0a3bb 100644 --- a/src/camera-offset.cpp +++ b/src/camera-offset.cpp @@ -16,7 +16,7 @@ with_shifted_camera_offset::with_shifted_camera_offset(tile_shader& shader, chun auto pos = chunk_coords(c_) - first_; constexpr auto depth_start = -1 + 1.111e-16f; - int depth = TILE_MAX_DIM*2 * pos.sum(); + int depth = (int)TILE_MAX_DIM*2 * pos.sum(); #if 0 printf("c=(%2hd %2hd %2hhd) pos=(%2d %2d) len=(%d %d) --> %d\n", c_.x, c_.y, c_.z, pos.x(), pos.y(), len.x(), len.y(), depth); -- cgit v1.2.3