From 50793184ee6c7057cd6e700029ee7bb7bb487801 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Wed, 19 Aug 2020 14:54:31 +1000 Subject: [PATCH] - SW: Remove random element from player's weapon left/right bobbing causing bob value to be between 24-48 and lock to 36. --- source/sw/src/panel.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/source/sw/src/panel.cpp b/source/sw/src/panel.cpp index 42a8a1dbd..2432a88ce 100644 --- a/source/sw/src/panel.cpp +++ b/source/sw/src/panel.cpp @@ -6808,12 +6808,8 @@ pWeaponBob(PANEL_SPRITEp psp, short condition) // sin_xxx moves the weapon left-right // // - // increment the ndx into the sin table - psp->sin_ndx = psp->sin_ndx + (synctics << 3); - // add a random factor to it - psp->sin_ndx += (RANDOM_P2(8) * synctics); - // wrap - psp->sin_ndx &= 2047; + // increment the ndx into the sin table and wrap. + psp->sin_ndx = (psp->sin_ndx + (synctics * 12)) & 2047; // get height xdiff = psp->sin_amt * calcSinTableValue(psp->sin_ndx) / 16384.;