diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2024-08-08 14:55:57 -0400 |
|---|---|---|
| committer | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2024-08-08 14:55:57 -0400 |
| commit | a25d2651de7e1f63950c0d8e5684813cc7464abb (patch) | |
| tree | 4706068e6f0ea8577bbff691779b8d1122f0969e /src/d/d_cc_s.cpp | |
| parent | 707fceca57d750dd132a5106788cc6b381ac1d35 (diff) | |
Move sqrtf to std:: namespace
Diffstat (limited to 'src/d/d_cc_s.cpp')
| -rw-r--r-- | src/d/d_cc_s.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/d/d_cc_s.cpp b/src/d/d_cc_s.cpp index de05ed92..95ed2c22 100644 --- a/src/d/d_cc_s.cpp +++ b/src/d/d_cc_s.cpp @@ -218,12 +218,12 @@ void dCcS::SetPosCorrect(cCcD_Obj* obj1, cXyz* ppos1, cCcD_Obj* obj2, cXyz* ppos objsDist.x = ppos2->x - ppos1->x; objsDist.y = ppos2->y - ppos1->y; objsDist.z = ppos2->z - ppos1->z; - objDistLen = sqrtf(objsDist.x*objsDist.x + objsDist.y*objsDist.y + objsDist.z*objsDist.z); + objDistLen = std::sqrtf(objsDist.x*objsDist.x + objsDist.y*objsDist.y + objsDist.z*objsDist.z); } else { objsDist.x = ppos2->x - ppos1->x; objsDist.y = 0.0f; objsDist.z = ppos2->z - ppos1->z; - objDistLen = sqrtf(objsDist.x*objsDist.x + objsDist.z*objsDist.z); + objDistLen = std::sqrtf(objsDist.x*objsDist.x + objsDist.z*objsDist.z); } if (!cM3d_IsZero(objDistLen)) { if (correctY) { |
