Oops ... can't use raw angles for P_RandomRange anyway.

This commit is contained in:
Sally Coolatta 2021-12-23 22:58:25 -05:00 committed by SinnamonLat
parent fee1ccdc0d
commit 7ce3d5bea0

View file

@ -633,12 +633,12 @@ static void K_SpawnFootstepParticle(mobj_t *mo, t_footstep_t *fs)
if ((leveltime / 2) & 1)
{
tireAngle -= ANGLE_45;
tireAngle -= P_RandomRange(0, fs->cone);
tireAngle -= P_RandomRange(0, fs->cone / ANG1) * ANG1;
}
else
{
tireAngle += ANGLE_45;
tireAngle += P_RandomRange(0, fs->cone);
tireAngle += P_RandomRange(0, fs->cone / ANG1) * ANG1;
}
pushAngle = K_MomentumAngle(mo) + ANGLE_180;