From 7d9891b249450cfeb9fa8968567791221b2bbb19 Mon Sep 17 00:00:00 2001 From: obligaron Date: Fri, 23 Jul 2021 09:32:02 +0200 Subject: [PATCH] ADL GetOffsetForWalking: remove diagonal special --- Source/scrollrt.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Source/scrollrt.cpp b/Source/scrollrt.cpp index cae5e0de3..c7bf28b95 100644 --- a/Source/scrollrt.cpp +++ b/Source/scrollrt.cpp @@ -1359,14 +1359,6 @@ Displacement GetOffsetForWalking(const AnimationInfo &animationInfo, const Direc Displacement offset = MovingOffset[dir]; offset *= fAnimationProgress; - // In diagonal walks the offset for y is smaller than x. - // This means that sometimes x is updated but y not. - // That results in a small stuttering. - // To fix this we disallow odd x as this is the only case where y is not updated. - if (IsDiagionalWalk[dir] && ((offset.deltaX % 2) != 0)) { - offset.deltaX -= offset.deltaX > 0 ? 1 : -1; - } - if (cameraMode) { offset = -offset; } else {