mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-15 18:17:19 +00:00
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:
parent
a77ed63c5f
commit
49d99e3a31
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue