- fixed A_WraithFX2 which had an incomplete floating point conversion.

This commit is contained in:
Christoph Oelckers 2016-04-17 18:19:46 +02:00
parent 3ed7a25d61
commit 08514de768

View file

@ -127,8 +127,8 @@ DEFINE_ACTION_FUNCTION(AActor, A_WraithFX2)
angle = -angle; angle = -angle;
} }
angle += self->Angles.Yaw; angle += self->Angles.Yaw;
mo->Vel.X = ((pr_wraithfx2() << 7) + 1) * angle.Cos(); mo->Vel.X = ((pr_wraithfx2() / 512.) + 1) * angle.Cos();
mo->Vel.Y = ((pr_wraithfx2() << 7) + 1) * angle.Sin(); mo->Vel.Y = ((pr_wraithfx2() / 512.) + 1) * angle.Sin();
mo->Vel.Z = 0; mo->Vel.Z = 0;
mo->target = self; mo->target = self;
mo->Floorclip = 10; mo->Floorclip = 10;