From bcb2d0a3f22b1bee1b7d1ab64ae28865d58cc358 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 17 Oct 2022 17:15:37 +0200 Subject: a --- src/camera-offset.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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() -- cgit v1.2.3