mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-21 22:54:37 -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 @@
|
||||
* @brief Enemy - Mini Freezard
|
||||
*/
|
||||
|
||||
#include "d/dolzel_rel.h"
|
||||
#include "d/dolzel_rel.h" // IWYU pragma: keep
|
||||
|
||||
#include "d/actor/d_a_e_fz.h"
|
||||
#include "f_op/f_op_actor_enemy.h"
|
||||
@@ -377,7 +377,7 @@ bool daE_FZ_c::way_gake_check() {
|
||||
gnd_chk.SetPos(&field_0x6e8);
|
||||
|
||||
field_0x6e8.y = dComIfG_Bgsp().GroundCross(&gnd_chk);
|
||||
if (field_0x6e8.y == -1e+09f) {
|
||||
if (field_0x6e8.y == -G_CM3D_F_INF) {
|
||||
field_0x6e8.y = current.pos.y;
|
||||
return true;
|
||||
} else if (current.pos.y - field_0x6e8.y > 100.0f) {
|
||||
@@ -782,7 +782,7 @@ void daE_FZ_c::action() {
|
||||
gnd_chk.SetPos(&pos);
|
||||
pos.y = dComIfG_Bgsp().GroundCross(&gnd_chk);
|
||||
|
||||
if (pos.y != -1e+09f) {
|
||||
if (pos.y != -G_CM3D_F_INF) {
|
||||
field_0x710 = 0;
|
||||
|
||||
if (current.pos.y - pos.y > 400.0f && field_0x713 == 0) {
|
||||
|
||||
Reference in New Issue
Block a user