mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-01 12:50:56 +00:00
- Blood: Clean up unnecessary vel negation in MoveDude()
.
This commit is contained in:
parent
d25f6597b8
commit
7c1aa53c45
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue