Skip to content

Commit

Permalink
fix: sensible deadzone check for analog leaning
Browse files Browse the repository at this point in the history
  • Loading branch information
cylonicboom committed Oct 15, 2023
1 parent 380cdec commit 2bc53db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/bondwalk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,7 @@ void bwalkApplyMoveData(struct movedata *data)
bwalkSetSwayTarget(-1);
} else if (data->rleanright) {
bwalkSetSwayTarget(1);
} else if (fabsf(data->analoglean)) {
} else if (fabsf(data->analoglean) >= .2f) {
bwalkSetSwayTargetf(data->analoglean);
} else {
bwalkSetSwayTarget(0);
Expand Down

0 comments on commit 2bc53db

Please sign in to comment.