Regalloc/debug/misc fixes (#2794)

* Fix "0" asserts

* More debug and regalloc fixes

* Fix PTMF syntax for compatibility with other compilers

* Fix some fakematches, link more TUs for J/P
This commit is contained in:
LagoLunatic
2025-11-10 21:25:00 -05:00
committed by GitHub
parent a02f72d8f3
commit 23a1c94063
87 changed files with 314 additions and 607 deletions
+2 -3
View File
@@ -167,7 +167,6 @@ void daE_OT_c::setActionMode(int i_action, int i_mode) {
}
/* 8073A510-8073A7B0 000330 02A0+00 1/1 0/0 0/0 .text damage_check__8daE_OT_cFv */
// NONMATCHING regswap
void daE_OT_c::damage_check() {
if (mAction == ACT_DAMAGE) {
return;
@@ -182,7 +181,7 @@ void daE_OT_c::damage_check() {
if (mCcSph.ChkCoHit()) {
fopAc_ac_c* hit_actor = dCc_GetAc(mCcSph.GetCoHitObj()->GetAc());
if (fopAcM_GetName(hit_actor) == PROC_E_DT
if (fopAcM_GetName(dCc_GetAc(hit_actor)) == PROC_E_DT
&& static_cast<daE_DT_c*>(hit_actor)->isFlyingAttack())
{
setActionMode(ACT_DAMAGE, 10);
@@ -197,7 +196,7 @@ void daE_OT_c::damage_check() {
if (mCcSph.ChkTgHit()) {
mAtInfo.mpCollider = mCcSph.GetTgHitObj();
dCc_GetAc(mAtInfo.mpCollider->GetAc());
fopAc_ac_c* ac = dCc_GetAc(mAtInfo.mpCollider->GetAc());
cc_at_check(this, &mAtInfo);
dScnPly_c::setPauseTimer(0);
if (mAtInfo.mpCollider->ChkAtType(AT_TYPE_SHIELD_ATTACK)) {