diff options
| author | rozlette <uberpanzermensch@gmail.com> | 2019-12-18 01:31:47 -0600 |
|---|---|---|
| committer | rozlette <uberpanzermensch@gmail.com> | 2019-12-18 01:31:47 -0600 |
| commit | 962a957166efdba439771cf3925905c5c58dd2bc (patch) | |
| tree | 3fdf1ba0702fd6e06970db613af7b859dc25e964 /src/code/z_lib.c | |
| parent | 82ad58e489e2b49064f1834462071433cc2da10f (diff) | |
Decompile code_0x800E8EA0.c
Diffstat (limited to 'src/code/z_lib.c')
| -rw-r--r-- | src/code/z_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/code/z_lib.c b/src/code/z_lib.c index f8124709b..a3695dc9e 100644 --- a/src/code/z_lib.c +++ b/src/code/z_lib.c @@ -409,13 +409,13 @@ f32 Lib_DistanceYVec3f(Vector3f* a, Vector3f* b) { return b->y - a->y; } -s32 Lib_YawVec3f(Vector3f* from, Vector3f* to) { +s16 Lib_YawVec3f(Vector3f* from, Vector3f* to) { f32 f14 = to->x - from->x; f32 f12 = to->z - from->z; return atans_flip(f12, f14); } -s32 Lib_PitchVec3f(Vector3f* from, Vector3f* to) { +s16 Lib_PitchVec3f(Vector3f* from, Vector3f* to) { return atans_flip(Lib_DistanceXZVec3f(from, to), from->y - to->y); } |
