diff options
| author | engineer124 <47598039+engineer124@users.noreply.github.com> | 2022-02-20 11:33:47 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-20 00:33:47 +0000 |
| commit | fa069535d0fe06966dec592c592b8a292aef0628 (patch) | |
| tree | edd3c247901bed09a2e35b48a827674ed4a295ea /src/code/z_lib.c | |
| parent | 71c0120fbd7191a6c543b547946573a347bad749 (diff) | |
Camera Preparation (#644)
* Copy progress from z_camera
* cleanup functions.h
* Oops
* Revert `SUB16` and `ADD16` back to original names
* PR Suggestions
* PR Suggestions
* Fix merge with master
Diffstat (limited to 'src/code/z_lib.c')
| -rw-r--r-- | src/code/z_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/code/z_lib.c b/src/code/z_lib.c index 84eb8c051..d9300deda 100644 --- a/src/code/z_lib.c +++ b/src/code/z_lib.c @@ -371,7 +371,7 @@ void Math_Vec3f_DistXYZAndStoreNormDiff(Vec3f* a, Vec3f* b, f32 scale, Vec3f* de f32 Math_Vec3f_DistXYZ(Vec3f* a, Vec3f* b) { Vec3f diff; Math_Vec3f_Diff(b, a, &diff); - return sqrtf(SQ(diff.x) + SQ(diff.y) + SQ(diff.z)); + return sqrtf(SQXYZ(diff)); } f32 Math_Vec3f_DistXYZAndStoreDiff(Vec3f* a, Vec3f* b, Vec3f* dest) { |
