From 632274e3b1432d55cf6cbbcafcad1ab3767b987a Mon Sep 17 00:00:00 2001 From: Jcw87 Date: Sun, 23 Apr 2023 00:50:45 -0700 Subject: [PATCH] fix FLOAT_MIN --- include/dolphin/types.h | 2 +- src/f_op/f_op_actor.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/dolphin/types.h b/include/dolphin/types.h index 28ccfa4b144..4bfa3b59fee 100644 --- a/include/dolphin/types.h +++ b/include/dolphin/types.h @@ -34,7 +34,7 @@ typedef int BOOL; #define INT32_MAX (0x7fffffff) #define UINT32_MAX (0xffffffff) -#define FLOAT_MIN (-1e31f) +#define FLOAT_MIN (1.175494351e-38f) #define FLOAT_MAX (3.40282346638528860e+38f) #endif \ No newline at end of file diff --git a/src/f_op/f_op_actor.cpp b/src/f_op/f_op_actor.cpp index bb17772376f..c11222bd3cd 100644 --- a/src/f_op/f_op_actor.cpp +++ b/src/f_op/f_op_actor.cpp @@ -84,8 +84,8 @@ static int fopAc_Execute(void* i_this) { fopAcM_delete(_this); } - if (_this->current.pos.y < FLOAT_MIN) { - _this->current.pos.y = FLOAT_MIN; + if (_this->current.pos.y < -1e31f) { + _this->current.pos.y = -1e31f; } dKy_depth_dist_set(_this);