mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-30 13:21:04 +00:00
- SW: Remove random element from player's weapon left/right bobbing causing bob value to be between 24-48 and lock to 36.
This commit is contained in:
parent
88a49b0d22
commit
50793184ee
1 changed files with 2 additions and 6 deletions
|
@ -6808,12 +6808,8 @@ pWeaponBob(PANEL_SPRITEp psp, short condition)
|
||||||
// sin_xxx moves the weapon left-right
|
// sin_xxx moves the weapon left-right
|
||||||
// //
|
// //
|
||||||
|
|
||||||
// increment the ndx into the sin table
|
// increment the ndx into the sin table and wrap.
|
||||||
psp->sin_ndx = psp->sin_ndx + (synctics << 3);
|
psp->sin_ndx = (psp->sin_ndx + (synctics * 12)) & 2047;
|
||||||
// add a random factor to it
|
|
||||||
psp->sin_ndx += (RANDOM_P2(8) * synctics);
|
|
||||||
// wrap
|
|
||||||
psp->sin_ndx &= 2047;
|
|
||||||
|
|
||||||
// get height
|
// get height
|
||||||
xdiff = psp->sin_amt * calcSinTableValue(psp->sin_ndx) / 16384.;
|
xdiff = psp->sin_amt * calcSinTableValue(psp->sin_ndx) / 16384.;
|
||||||
|
|
Loading…
Reference in a new issue