diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-30 07:01:26 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-30 07:01:26 +0100 |
commit | df6a99969e94a75c84666a32169ad44a6d7b6579 (patch) | |
tree | 86e5ef50e9d03478e35ddf22a3ad173a311f94a5 /src | |
parent | 2a28ebacdbe5f21faff52734291b7dfe1ac63736 (diff) |
fix typo
Diffstat (limited to 'src')
-rw-r--r-- | src/camera-offset.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/camera-offset.cpp b/src/camera-offset.cpp index f837fd1f..b132cdab 100644 --- a/src/camera-offset.cpp +++ b/src/camera-offset.cpp @@ -10,7 +10,8 @@ with_shifted_camera_offset::with_shifted_camera_offset(tile_shader& shader, shor _shader{shader}, _offset{shader.camera_offset()} { - const auto offset = _offset + tile_shader::project(Vector3d(x, y, 0) * TILE_MAX_DIM20d); + constexpr auto chunk_size = TILE_MAX_DIM20d*dTILE_SIZE; + const auto offset = _offset + tile_shader::project(Vector3d(x, y, 0) * chunk_size); _shader.set_camera_offset(offset); } |