diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-18 05:23:48 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-18 05:23:48 +0200 |
commit | 40510b6e50ae9dd027c55e52c91433807ddf5c39 (patch) | |
tree | 997d5100539bfd7e5cf11290e0bf8447204575c0 /src/camera-offset.cpp | |
parent | cf14af7dc7b6ffa3ef899a57079bafc5a8d63c68 (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 63de0b8b..0f90768b 100644 --- a/src/camera-offset.cpp +++ b/src/camera-offset.cpp @@ -12,7 +12,7 @@ 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({-double(x)*TILE_MAX_DIM*dTILE_SIZE[0], + const auto offset = _offset + tile_shader::project({double(x)*TILE_MAX_DIM*dTILE_SIZE[0], double(y)*TILE_MAX_DIM*dTILE_SIZE[1], 0}); _shader.set_camera_offset(offset); |