Skip to content

Commit

Permalink
Fix vertical weapon inertia for weapon voxels
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlaux committed Jan 19, 2025
1 parent 49fedb9 commit a8633db
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/r_voxel.c
Original file line number Diff line number Diff line change
Expand Up @@ -1120,10 +1120,12 @@ boolean VX_ProjectWeaponVoxel(const pspdef_t *const psp,
fixed_t x = sx2,
y = sy2 - 32*FRACUNIT;

if (STRICTMODE(weapon_inertia) && default_vertical_aiming != VERTAIM_AUTO)
if (STRICTMODE(weapon_inertia))
{
x += wix / 2;
y += wiy / 2;

if (default_vertical_aiming != VERTAIM_AUTO)
{ y += wiy / 2; }
}

x /= 5;
Expand Down

0 comments on commit a8633db

Please sign in to comment.