- replaced R_PointToAngle2 in blood splatter functions.

This commit is contained in:
Christoph Oelckers 2016-02-22 12:03:03 +01:00 committed by Christoph Oelckers
parent 730145d1fc
commit 31cf712db3
2 changed files with 3 additions and 3 deletions

View file

@ -111,7 +111,7 @@ void A_PainShootSkull (AActor *self, angle_t angle, PClassActor *spawntype, int
if (!inportal) break; if (!inportal) break;
// recalculate position and redo the check on the other side of the portal // 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.x = pos.x - dist.x;
src.y = pos.y - dist.y; src.y = pos.y - dist.y;

View file

@ -5358,7 +5358,7 @@ void P_BloodSplatter (fixed_t x, fixed_t y, fixed_t z, AActor *originator)
} }
if (bloodtype >= 1) 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) 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);
} }
} }