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.
This commit is contained in:
Kelsi 2026-02-07 16:07:21 -08:00
parent eb6e42eb59
commit d9fe774d5f

View file

@ -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 {