From ef3dc1c60e0eb5eeded1ddb96c9a92fc52c71493 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Mon, 8 Apr 2024 14:34:45 +1000 Subject: fix: slightly jittery zoom level transitions --- source/rendering/StarWorldCamera.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'source/rendering/StarWorldCamera.cpp') diff --git a/source/rendering/StarWorldCamera.cpp b/source/rendering/StarWorldCamera.cpp index 81e599f..c0bc645 100644 --- a/source/rendering/StarWorldCamera.cpp +++ b/source/rendering/StarWorldCamera.cpp @@ -3,6 +3,7 @@ namespace Star { void WorldCamera::setCenterWorldPosition(Vec2F const& position, bool force) { + m_rawWorldCenter = position; // Only actually move the world center if a half pixel distance has been // moved in any direction. This is sort of arbitrary, but helps prevent // judder if the camera is at a boundary and floating point inaccuracy is -- cgit v1.2.3