diff options
| author | Derek Hensley <hensley.derek58@gmail.com> | 2024-06-03 11:33:03 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-03 14:33:03 -0400 |
| commit | f26e77ba4088f20e72e13409f9ad535039abd291 (patch) | |
| tree | fa39e6c8bb57bfe5729854c8ea2bd3e25ea4155f /src/code/sys_matrix.c | |
| parent | 312b65d5e34878df4b70d8b9922e1082213b3662 (diff) | |
More General Cleanup (#1638)
* LINKER_FILES in makefile
* COLPOLY_GET_NORMAL
* math header
* libc
* M_PI for cosf and sinf files
* MAXFLOAT
* Revert "MAXFLOAT"
This reverts commit 96b75ffaa89b1a4ca1c08278b28bc3c70224701a.
* Remove SHT_MINV
* SHRT_MAX
* Add M_PI
* Angle macros
* f suffix
* Format
Diffstat (limited to 'src/code/sys_matrix.c')
| -rw-r--r-- | src/code/sys_matrix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/code/sys_matrix.c b/src/code/sys_matrix.c index 66db1a35c..42ae4277b 100644 --- a/src/code/sys_matrix.c +++ b/src/code/sys_matrix.c @@ -448,8 +448,8 @@ void Matrix_RotateXFApply(f32 x) { if (x != 0.0f) { cmf = sCurrentMatrix; - sin = sins(RAD_TO_BINANG(x)) * SHT_MINV; - cos = coss(RAD_TO_BINANG(x)) * SHT_MINV; + sin = sins(RAD_TO_BINANG(x)) * (1.0f / SHRT_MAX); + cos = coss(RAD_TO_BINANG(x)) * (1.0f / SHRT_MAX); tempY = cmf->xy; tempZ = cmf->xz; |
