Do the spinning mace sound every half spin, instead of every full swing

This matches how Marble Garden maces worked in Sonic 3 more closely, and also just makes it plain easier to hear them in a fast-paced race.
This commit is contained in:
Sally Coolatta 2021-04-13 04:28:41 -04:00
parent a77ed63c5f
commit 49d99e3a31

View file

@ -4319,8 +4319,8 @@ void P_MaceRotate(mobj_t *center, INT32 baserot, INT32 baseprevrot)
angle_t prevfa = (prevrot + mobj->friction) & FINEMASK;
fa = (rot + mobj->friction) & FINEMASK;
if (!(prevfa > (FINEMASK/2)) && (fa > (FINEMASK/2))) // completed a full swing
dosound = true;
// completed a half-spin
dosound = ((prevfa > (FINEMASK/2)) != (fa > (FINEMASK/2)));
unit_lengthways[0] = FixedMul(FINECOSINE(fa), radius);
unit_lengthways[2] = FixedMul(FINESINE(fa), radius);