diff options
| author | Jcw87 <Jcw87@users.noreply.github.com> | 2023-04-21 02:01:46 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-21 02:01:46 -0700 |
| commit | 472340e2d65914f3a19aa332ad31939755ee4579 (patch) | |
| tree | d2b987b009b7f09e9dfd3d7f859b9f6ff4d1b9c7 /src/d/d_demo.cpp | |
| parent | 55f6707c06b1cc9f28be8891699fb87676ca1a74 (diff) | |
add FLT_MAX, FLT_EPSILON, NAN, and HUGE_VALF to MSL_C headers (#316)
Diffstat (limited to 'src/d/d_demo.cpp')
| -rw-r--r-- | src/d/d_demo.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/d/d_demo.cpp b/src/d/d_demo.cpp index d4e23512b4..3104de2c06 100644 --- a/src/d/d_demo.cpp +++ b/src/d/d_demo.cpp @@ -4,6 +4,7 @@ // #include "d/d_demo.h" +#include "MSL_C/float.h" #include "d/com/d_com_inf_game.h" #include "d/msg/d_msg_object.h" #include "dol2asm.h" @@ -605,8 +606,8 @@ dDemo_actor_c::dDemo_actor_c() { mScale.set(1.0f, 1.0f, 1.0f); mRotate.set(0, 0, 0); mModel = NULL; - mAnmFrameMax = __float_max[0]; - mTexAnmFrameMax = __float_max[0]; + mAnmFrameMax = FLT_MAX; + mTexAnmFrameMax = FLT_MAX; } #else #pragma push @@ -924,7 +925,7 @@ void dDemo_actor_c::JSGSetShape(u32 i_shape) { */ void dDemo_actor_c::JSGSetAnimation(u32 i_anmID) { mAnmId = i_anmID; - mAnmFrameMax = __float_max[0]; + mAnmFrameMax = FLT_MAX; onEnable(0x20); } |
