Skip to content

Commit

Permalink
Use VectorLength(3D) in actor velocity functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Korshun committed Jul 9, 2017
1 parent 999ca91 commit e7d7e46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/acszdoom.acs
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,12 @@ function int ActorDistance2D(int tid1, int tid2)

function int GetActorVelocity(int tid)
{
return length3d(GetActorVelX(tid), GetActorVelY(tid), GetActorVelZ(tid));
return VectorLength3D(GetActorVelX(tid), GetActorVelY(tid), GetActorVelZ(tid));
}

function int GetActorXYVelocity(int tid)
{
return length2d(GetActorVelX(tid), GetActorVelY(tid));
return VectorLength(GetActorVelX(tid), GetActorVelY(tid));
}


Expand Down

0 comments on commit e7d7e46

Please sign in to comment.