summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/camera-offset.cpp2
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()