From d9fe774d5f04eb8fdf2f89332f5e8254a7629113 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Sat, 7 Feb 2026 16:07:21 -0800 Subject: [PATCH] Fix auto-run not triggering run/swim animation isMoving() re-read raw key states and didn't account for autoRunning flag, so the animation state machine never saw movement during auto-run. --- src/rendering/camera_controller.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rendering/camera_controller.cpp b/src/rendering/camera_controller.cpp index 22071e04..79ec2718 100644 --- a/src/rendering/camera_controller.cpp +++ b/src/rendering/camera_controller.cpp @@ -1256,11 +1256,11 @@ bool CameraController::isMoving() const { // In third-person without RMB, A/D are turn keys (not movement). if (thirdPerson && !rightMouseDown) { - return keyW || keyS || keyQ || keyE; + return keyW || keyS || keyQ || keyE || autoRunning; } bool mouseAutorun = leftMouseDown && rightMouseDown; - return keyW || keyS || keyA || keyD || keyQ || keyE || mouseAutorun; + return keyW || keyS || keyA || keyD || keyQ || keyE || mouseAutorun || autoRunning; } bool CameraController::isSprinting() const {