Skip to content

Conversation

@pliesveld
Copy link

No description provided.

// same team
if (pVictim && pMedic && pVictim->GetTeamIndex() == pMedic->GetTeamIndex())
{
vec_t distance = sqrt(pVictim->GetAbsOrigin().DistToSqr(pMedic->GetAbsOrigin()));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a Vector::DistTo function instead of doing a sqrt(DistToSqr)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants