Skip to content

Commit

Permalink
actually fix leaning issues
Browse files Browse the repository at this point in the history
  • Loading branch information
cylonicboom committed Oct 15, 2023
1 parent 39455d5 commit 380cdec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/game/bondwalk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1354,16 +1354,16 @@ void bwalkApplyMoveData(struct movedata *data)
bwalkSetSwayTarget(-1);
} else if (data->rleanright) {
bwalkSetSwayTarget(1);
} else if (data->analoglean && bmoveIsInSightAimMode()) {
} else if (fabsf(data->analoglean)) {
bwalkSetSwayTargetf(data->analoglean);
} else {
bwalkSetSwayTarget(0);
}
#else
if (data->rleanright) {
if (data->rleanleft) {
bwalkSetSwayTarget(-1);
} else if (data->rleanright) {
bwalkSetSwayTarget(1);
} else if (data->analoglean && bmoveIsInSightAimMode()) {
bwalkSetSwayTargetf(data->analoglean);
} else {
bwalkSetSwayTarget(0);
}
Expand Down

0 comments on commit 380cdec

Please sign in to comment.