diff options
| author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-06-21 17:57:16 +0700 |
|---|---|---|
| committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-06-21 17:57:16 +0700 |
| commit | 8b0a4225dae689b56ab7ad93b05c8258e7abccb4 (patch) | |
| tree | 4065f9b7ea9669b46f5bb69c7b5242dfecb2d341 /src/Person.cpp | |
| parent | fb2f16557d34d3b2b4ad44687a55a830878e6aba (diff) | |
| download | blackshades-8b0a4225dae689b56ab7ad93b05c8258e7abccb4.tar.gz | |
Improve C++17 compatibility
Diffstat (limited to 'src/Person.cpp')
| -rw-r--r-- | src/Person.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Person.cpp b/src/Person.cpp index 6490658..bc77ad9 100644 --- a/src/Person.cpp +++ b/src/Person.cpp @@ -49,7 +49,7 @@ HitStruct Person::BulletCollideWithPlayer(int who, XYZ start, XYZ end){ distancemax=findDistancefast(average,skeleton.joints[j].position); } } - distancemax=fast_sqrt(distancemax); + distancemax=sqrt(distancemax); //Collide with player if(skeleton.free<1){ start=start-playercoords; |
