Skip to content

Commit

Permalink
2.0.0 release addendum
Browse files Browse the repository at this point in the history
Forgot to make these changes before pushing the release commit, oops...
  • Loading branch information
MrAlaux committed Jul 14, 2023
1 parent 11c16c5 commit de05fe0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/p_pspr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,8 @@ static void WeaponInertiaHorizontal(player_t* player, pspdef_t *psp)
if (angle > 0)
{
const fixed_t scale = EASE_SCALE(angle, FINEANGLES);
const fixed_t delta = MIN(MAX_DELTA, EASE_OUT(MAX_DELTA, scale));
fixed_t delta = EASE_OUT(MAX_DELTA, scale);
delta = MIN(delta, MAX_DELTA);
psp->wix += clockwise ? -delta : delta;
}

Expand All @@ -1260,7 +1261,8 @@ static void WeaponInertiaVertical(player_t* player, pspdef_t *psp)
if (lookdir != 0)
{
const fixed_t scale = EASE_SCALE(abs(lookdir), FINEANGLES);
const fixed_t delta = MIN(MAX_DELTA, EASE_OUT(MAX_DELTA, scale));
fixed_t delta = EASE_OUT(MAX_DELTA, scale);
delta = MIN(delta, MAX_DELTA);
psp->wiy += lookdir < 0 ? -delta : delta;
}

Expand Down

0 comments on commit de05fe0

Please sign in to comment.