diff options
author | Nguyễn Gia Phong <cnx@loang.net> | 2023-08-24 04:21:46 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <cnx@loang.net> | 2023-08-24 04:30:20 +0900 |
commit | efd25d51cdd7a9cadda1c0f6983905fc17545f14 (patch) | |
tree | 8dea973669d8dfe4e7209c9f419bf8cbbf483323 /src/Person.cpp | |
parent | 2598835c54a3869a477d287d2845bbe42790a359 (diff) | |
download | blackshades-2.5.1.tar.gz |
Fix decal fading animation 2.5.1
Also fix missing decal regression. Fixes: 48417e11854f8 ("Make XYZ C-compatible")
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 d4a298b..0115a89 100644 --- a/src/Person.cpp +++ b/src/Person.cpp @@ -72,7 +72,7 @@ HitStruct Person::BulletCollideWithPlayer(int who, XYZ start, XYZ end){ } tempbulletloc[0]=start; tempbulletloc[1]=end; - if (segmentIntersectsSphere(start, end, average, distancemax)) { + if (segCrossSphere(start, end, average, distancemax)) { for (auto& joint : skeleton.joints) { if (joint.hasparent && joint.visible) { tempbulletloc[0] = start; |