- looks I missed one file when I member-fied P_AproxDistance and R_PointToAngle2 calls.

This commit is contained in:
Christoph Oelckers 2016-01-15 15:36:21 +01:00
parent 48232f548d
commit ef8dc22f7d

View file

@ -95,7 +95,7 @@ DEFINE_ACTION_FUNCTION(AActor, A_Tracer2)
return;
// change angle
exact = R_PointToAngle2 (self->x, self->y, dest->x, dest->y);
exact = self->AngleTo(dest);
if (exact != self->angle)
{
@ -120,8 +120,7 @@ DEFINE_ACTION_FUNCTION(AActor, A_Tracer2)
if (!(self->flags3 & (MF3_FLOORHUGGER|MF3_CEILINGHUGGER)))
{
// change slope
dist = P_AproxDistance (dest->x - self->x, dest->y - self->y);
dist /= self->Speed;
dist = self->AproxDistance (dest) / self->Speed;
if (dist < 1)
{