mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 17:43:52 +00:00
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:
parent
eb6e42eb59
commit
d9fe774d5f
1 changed files with 2 additions and 2 deletions
|
|
@ -1256,11 +1256,11 @@ bool CameraController::isMoving() const {
|
||||||
|
|
||||||
// In third-person without RMB, A/D are turn keys (not movement).
|
// In third-person without RMB, A/D are turn keys (not movement).
|
||||||
if (thirdPerson && !rightMouseDown) {
|
if (thirdPerson && !rightMouseDown) {
|
||||||
return keyW || keyS || keyQ || keyE;
|
return keyW || keyS || keyQ || keyE || autoRunning;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool mouseAutorun = leftMouseDown && rightMouseDown;
|
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 {
|
bool CameraController::isSprinting() const {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue