diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-17 17:15:37 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-17 17:15:37 +0200 |
| commit | bcb2d0a3f22b1bee1b7d1ab64ae28865d58cc358 (patch) | |
| tree | 3047f493dd307f574638c12c2eb9184f3a054917 /src | |
| parent | d953b707c8cd5e42088245abb6527be211eee9cb (diff) | |
a
Diffstat (limited to 'src')
| -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 f4c3271e..2595d1d8 100644 --- a/src/camera-offset.cpp +++ b/src/camera-offset.cpp @@ -14,7 +14,7 @@ with_shifted_camera_offset::with_shifted_camera_offset(tile_shader& shader, shor const auto offset = tile_shader::project({float(x)*TILE_MAX_DIM*TILE_SIZE[0], float(y)*TILE_MAX_DIM*TILE_SIZE[1], 0}); - _shader.set_camera_offset(_offset + Vector2(x, y)); + _shader.set_camera_offset(_offset + offset); } with_shifted_camera_offset::~with_shifted_camera_offset() |
