mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-19 22:33:04 -04:00
Fix JUT_ASSERT and several other macros (#2711)
* Fix JUT_ASSERT to be a nested define * Switch names that appear in asserts to be constants instead of defines * Replace `0` in asserts with `NULL` or `FALSE` * Fix fpclassify * Fix ARRAY_SIZE * Use G_CM3D_F_INF * More fixes for fpclassify * Remove FLOAT_LABEL * Remove incorrect FLAG_ON macro * Remove UNK_BSS macro * Silence clangd unused header warning for PCH
This commit is contained in:
+7
-7
@@ -3,7 +3,7 @@
|
||||
* DZB Collision handling
|
||||
*/
|
||||
|
||||
#include "d/dolzel.h"
|
||||
#include "d/dolzel.h" // IWYU pragma: keep
|
||||
|
||||
#include "d/d_bg_w.h"
|
||||
#include "SSystem/SComponent/c_bg_s_shdw_draw.h"
|
||||
@@ -249,12 +249,12 @@ void cBgW::MakeBlckBnd(int i_blk_idx, cXyz* i_min, cXyz* i_max) {
|
||||
if (mNeedsFullTransform == 0) {
|
||||
MakeBlckTransMinMax(i_min, i_max);
|
||||
} else {
|
||||
i_min->z = 1000000000.0f;
|
||||
i_min->y = 1000000000.0f;
|
||||
i_min->x = 1000000000.0f;
|
||||
i_max->z = -1000000000.0f;
|
||||
i_max->y = -1000000000.0f;
|
||||
i_max->x = -1000000000.0f;
|
||||
i_min->z = G_CM3D_F_INF;
|
||||
i_min->y = G_CM3D_F_INF;
|
||||
i_min->x = G_CM3D_F_INF;
|
||||
i_max->z = -G_CM3D_F_INF;
|
||||
i_max->y = -G_CM3D_F_INF;
|
||||
i_max->x = -G_CM3D_F_INF;
|
||||
|
||||
for (int i = start; i <= max; i++) {
|
||||
MakeBlckMinMax(pm_bgd->m_t_tbl[i].m_vtx_idx0, i_min, i_max);
|
||||
|
||||
Reference in New Issue
Block a user