mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-13 21:25:26 -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:
@@ -3,7 +3,7 @@
|
||||
* Mirror of Twilight
|
||||
*/
|
||||
|
||||
#include "d/dolzel_rel.h"
|
||||
#include "d/dolzel_rel.h" // IWYU pragma: keep
|
||||
|
||||
#include "d/actor/d_a_mirror.h"
|
||||
#include "JSystem/J3DGraphBase/J3DDrawBuffer.h"
|
||||
@@ -206,7 +206,7 @@ void dMirror_packet_c::modelDraw(J3DModel* i_model, Mtx param_1) {
|
||||
}
|
||||
|
||||
dScnKy_env_light_c* kankyo = dKy_getEnvlight();
|
||||
JUT_ASSERT(0, kankyo != 0);
|
||||
JUT_ASSERT(0, kankyo != NULL);
|
||||
|
||||
GXColor color = {0};
|
||||
color.r = kankyo->bg_amb_col[0].r;
|
||||
@@ -597,7 +597,7 @@ int daMirror_c::execute() {
|
||||
}
|
||||
|
||||
daPy_py_c* player = daPy_getLinkPlayerActorClass();
|
||||
JUT_ASSERT(0, player != 0);
|
||||
JUT_ASSERT(0, player != NULL);
|
||||
|
||||
if (mPacket.getViewScale().y > 0.0f && player->getKandelaarFlamePos() &&
|
||||
fopAcM_searchActorDistance2(this, player) < 40000.0f)
|
||||
|
||||
Reference in New Issue
Block a user