diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-09-12 05:52:55 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-09-12 05:52:55 +0200 |
commit | aae112ae02b415483ac03c59629dc9290bd833cf (patch) | |
tree | a4763c87cdb7fd00109255a618177c30d1f0fa73 /src/camera-offset.cpp | |
parent | 7c56df7eed83af63e018be1be5507c1ca8cf1b99 (diff) |
a
Diffstat (limited to 'src/camera-offset.cpp')
-rw-r--r-- | src/camera-offset.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |