From 08514de768e048657ad39d9b6134e564f203057e Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 17 Apr 2016 18:19:46 +0200 Subject: [PATCH] - fixed A_WraithFX2 which had an incomplete floating point conversion. --- src/g_hexen/a_wraith.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/g_hexen/a_wraith.cpp b/src/g_hexen/a_wraith.cpp index 24ae22afd..460fa6503 100644 --- a/src/g_hexen/a_wraith.cpp +++ b/src/g_hexen/a_wraith.cpp @@ -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;