diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2025-09-28 16:11:07 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-28 13:11:07 -0700 |
| commit | 9eea9289b1c4316d5856d1cb9602ee463d7de989 (patch) | |
| tree | dde3385855941d12a306de3ca8fb316338be288b /src/d/actor/d_a_e_fz.cpp | |
| parent | c9a710a939c7bccee7eb16e90ed70c9d3f6c78ad (diff) | |
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
Diffstat (limited to 'src/d/actor/d_a_e_fz.cpp')
| -rw-r--r-- | src/d/actor/d_a_e_fz.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/d/actor/d_a_e_fz.cpp b/src/d/actor/d_a_e_fz.cpp index bd08802607..f5be87ec6a 100644 --- a/src/d/actor/d_a_e_fz.cpp +++ b/src/d/actor/d_a_e_fz.cpp @@ -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) { |
