From 31cf712db3dc2bc563702bf155b8d8467418bf6f Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 22 Feb 2016 12:03:03 +0100 Subject: [PATCH] - replaced R_PointToAngle2 in blood splatter functions. --- src/g_doom/a_painelemental.cpp | 2 +- src/p_mobj.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/g_doom/a_painelemental.cpp b/src/g_doom/a_painelemental.cpp index b73af5e1d..1f88fa033 100644 --- a/src/g_doom/a_painelemental.cpp +++ b/src/g_doom/a_painelemental.cpp @@ -111,7 +111,7 @@ void A_PainShootSkull (AActor *self, angle_t angle, PClassActor *spawntype, int if (!inportal) break; // recalculate position and redo the check on the other side of the portal - pos = self->Vec3Offset(dist.x, dist.y, 8 * FRACUNIT, false); + pos = self->Vec3Offset(dist.x, dist.y, 8 * FRACUNIT); src.x = pos.x - dist.x; src.y = pos.y - dist.y; diff --git a/src/p_mobj.cpp b/src/p_mobj.cpp index 0f941699f..7228ffbff 100644 --- a/src/p_mobj.cpp +++ b/src/p_mobj.cpp @@ -5358,7 +5358,7 @@ void P_BloodSplatter (fixed_t x, fixed_t y, fixed_t z, AActor *originator) } if (bloodtype >= 1) { - P_DrawSplash2 (40, x, y, z, R_PointToAngle2 (x, y, originator->X(), originator->Y()), 2, bloodcolor); + P_DrawSplash2 (40, x, y, z, 0u - originator->AngleTo(x, y), 2, bloodcolor); } } @@ -5398,7 +5398,7 @@ void P_BloodSplatter2 (fixed_t x, fixed_t y, fixed_t z, AActor *originator) } if (bloodtype >= 1) { - P_DrawSplash2 (100, x, y, z, R_PointToAngle2 (0, 0, originator->X() - x, originator->Y() - y), 2, bloodcolor); + P_DrawSplash2 (100, x, y, z, 0u - originator->AngleTo(x, y), 2, bloodcolor); } }