summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2025-09-28 14:01:14 -0400
committerLagoLunatic <LagoLunatic@users.noreply.github.com>2025-09-28 14:01:14 -0400
commit27f0df12eb2293ada28ca2bb8f607f41ee92bf12 (patch)
tree9fb5231499926ee1a113621b6b7cd6eb3b04c322
parentbf818e8aec3f945480ec94f8a508812364833427 (diff)
Fix G_CM3D_F_INF define
-rw-r--r--include/SSystem/SComponent/c_m3d.h2
-rw-r--r--src/d/d_bg_w_hf.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/SSystem/SComponent/c_m3d.h b/include/SSystem/SComponent/c_m3d.h
index 808036fc..04b66ff4 100644
--- a/include/SSystem/SComponent/c_m3d.h
+++ b/include/SSystem/SComponent/c_m3d.h
@@ -22,7 +22,7 @@ extern const f32 G_CM3D_F_ABS_MIN;
#if VERSION == VERSION_DEMO
extern const f32 G_CM3D_F_INF;
#else
-#define G_CM3D_F_INF 1e+9f
+#define G_CM3D_F_INF (1000000000.0f)
#endif
extern const u32 BPCP_OUTCODE0;
diff --git a/src/d/d_bg_w_hf.cpp b/src/d/d_bg_w_hf.cpp
index 4029a493..4b302c43 100644
--- a/src/d/d_bg_w_hf.cpp
+++ b/src/d/d_bg_w_hf.cpp
@@ -9,8 +9,8 @@
#define CHECK_MINMAX_1(line, min, max) \
JUT_ASSERT(line, \
- min->x != (1000000000.0f) && min->y != (1000000000.0f) && min->z != (1000000000.0f) && \
- max->x != -(1000000000.0f) && max->y != -(1000000000.0f) && max->z != -(1000000000.0f) \
+ min->x != G_CM3D_F_INF && min->y != G_CM3D_F_INF && min->z != G_CM3D_F_INF && \
+ max->x != -G_CM3D_F_INF && max->y != -G_CM3D_F_INF && max->z != -G_CM3D_F_INF \
);
#define CHECK_MINMAX_2(line, min, max) \