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/z_lib.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/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 00bb37bc8..648f56cff 100644 --- a/src/code/z_lib.c +++ b/src/code/z_lib.c @@ -32,11 +32,11 @@ void* Lib_MemSet(void* buffer, s32 value, size_t size) { } f32 Math_CosS(s16 angle) { - return coss(angle) * SHT_MINV; + return coss(angle) * (1.0f / SHRT_MAX); } f32 Math_SinS(s16 angle) { - return sins(angle) * SHT_MINV; + return sins(angle) * (1.0f / SHRT_MAX); } s32 Math_StepToIImpl(s32 start, s32 target, s32 step) { |
