Fix more nonmatchings (#2850)

* Fix GetPolyIndex and GetBgIndex, fixing a couple regallocs

* Match daNpcCd2_c::checkFearSituation and daNpcCd2_c::getAnmP

* Match daAlink_c::jointControll

* Clean up float class checks

* Move float constants to global.h
This commit is contained in:
LagoLunatic
2025-11-23 18:23:44 -05:00
committed by GitHub
parent eb6c78a941
commit 4bc21e9bea
25 changed files with 219 additions and 224 deletions
+6 -6
View File
@@ -308,9 +308,9 @@ static int fopAc_Execute(void* i_this) {
l_HIO.field_0x7 = l_HIO.mStopExecute;
JUT_ASSERT(662, !(fpclassify(actor->current.pos.x) == 1));
JUT_ASSERT(663, !(fpclassify(actor->current.pos.y) == 1));
JUT_ASSERT(664, !(fpclassify(actor->current.pos.z) == 1));
JUT_ASSERT(662, !isnan(actor->current.pos.x));
JUT_ASSERT(663, !isnan(actor->current.pos.y));
JUT_ASSERT(664, !isnan(actor->current.pos.z));
if (!(-1.0e32f < actor->current.pos.x && actor->current.pos.x < 1.0e32f && -1.0e32f < actor->current.pos.y && actor->current.pos.y < 1.0e32f && -1.0e32f < actor->current.pos.z && actor->current.pos.z < 1.0e32f))
{
@@ -358,9 +358,9 @@ static int fopAc_Execute(void* i_this) {
fopAcM_delete(actor);
}
JUT_ASSERT(750, !(fpclassify(actor->current.pos.x) == 1));
JUT_ASSERT(751, !(fpclassify(actor->current.pos.y) == 1));
JUT_ASSERT(752, !(fpclassify(actor->current.pos.z) == 1));
JUT_ASSERT(750, !isnan(actor->current.pos.x));
JUT_ASSERT(751, !isnan(actor->current.pos.y));
JUT_ASSERT(752, !isnan(actor->current.pos.z));
if (actor->current.pos.y < -1e31f) {
actor->current.pos.y = -1e31f;