mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 21:21:04 +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 += self->Angles.Yaw;
|
||||
mo->Vel.X = ((pr_wraithfx2() << 7) + 1) * angle.Cos();
|
||||
mo->Vel.Y = ((pr_wraithfx2() << 7) + 1) * angle.Sin();
|
||||
mo->Vel.X = ((pr_wraithfx2() / 512.) + 1) * angle.Cos();
|
||||
mo->Vel.Y = ((pr_wraithfx2() / 512.) + 1) * angle.Sin();
|
||||
mo->Vel.Z = 0;
|
||||
mo->target = self;
|
||||
mo->Floorclip = 10;
|
||||
|
|
Loading…
Reference in a new issue