- Blood: Clean up unnecessary vel negation in MoveDude().

This commit is contained in:
Mitchell Richters 2023-11-19 18:16:31 +11:00
parent d25f6597b8
commit 7c1aa53c45

View file

@ -5152,8 +5152,8 @@ void MoveDude(DBloodActor* actor)
nDrag -= Scale(gDudeDrag, actor->xspr.height, 256);
// this cannot be floatified due to the effect of mulscale16r on the value.
actor->vel.X += FixedToFloat(-mulscale16r(FloatToFixed(actor->vel.X), nDrag));
actor->vel.Y += FixedToFloat(-mulscale16r(FloatToFixed(actor->vel.Y), nDrag));
actor->vel.X -= FixedToFloat(mulscale16r(FloatToFixed(actor->vel.X), nDrag));
actor->vel.Y -= FixedToFloat(mulscale16r(FloatToFixed(actor->vel.Y), nDrag));
if (actor->vel.XY().Length() < 0.0625)
{