mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- fixed A_WraithFX2 which had an incomplete floating point conversion.
This commit is contained in:
parent
3ed7a25d61
commit
08514de768
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue