mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- looks I missed one file when I member-fied P_AproxDistance and R_PointToAngle2 calls.
This commit is contained in:
parent
48232f548d
commit
ef8dc22f7d
1 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue