Merge pull request #321 from Jcw87/FLOAT_MIN

fix FLOAT_MIN
This commit is contained in:
hatal175 2023-04-25 23:13:46 +03:00 committed by GitHub
commit ca4ebc9012
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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);