mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-31 07:45:48 -04:00
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:
@@ -810,7 +810,7 @@ int daPeru_c::demo_walk_to_link(int param_0) {
|
||||
fopAc_ac_c* actor = mActors[2].getActorP();
|
||||
if (actor == NULL) {
|
||||
OS_REPORT("-----there is no player!!\n");
|
||||
JUT_PANIC(1948, 0);
|
||||
JUT_ASSERT(1948, FALSE);
|
||||
}
|
||||
cLib_chaseAngleS(&mCurAngle.y, fopAcM_searchActorAngleY(this, actor), 0x800);
|
||||
current.angle.y = mCurAngle.y;
|
||||
@@ -1013,7 +1013,7 @@ int daPeru_c::_cutAppear_Init(int const& param_1) {
|
||||
if (fopAcM_SearchByName(PROC_MIDNA, &midna) != 0) {
|
||||
if (midna == NULL) {
|
||||
OS_REPORT("---- there is no midna!!\n");
|
||||
JUT_PANIC(2446, 0);
|
||||
JUT_ASSERT(2446, FALSE);
|
||||
} else {
|
||||
mJntAnm.lookActor(midna, 0.0, 0);
|
||||
}
|
||||
@@ -1184,7 +1184,7 @@ void daPeru_c::_catdoor_open() {
|
||||
daObjCatDoor_c* pCatDoor = (daObjCatDoor_c*)mActors[1].getActorP();
|
||||
if (pCatDoor == NULL) {
|
||||
OS_REPORT("---- there is no catdoor!! ----!!\n");
|
||||
JUT_PANIC(2799, 0);
|
||||
JUT_ASSERT(2799, FALSE);
|
||||
} else {
|
||||
pCatDoor->setDoorOpen();
|
||||
}
|
||||
@@ -1196,7 +1196,7 @@ void daPeru_c::_catdoor_open_demoskip() {
|
||||
daObjCatDoor_c* pCatDoor = (daObjCatDoor_c*)mActors[1].getActorP();
|
||||
if (pCatDoor == NULL) {
|
||||
OS_REPORT("---- there is no catdoor!! ----!!\n");
|
||||
JUT_PANIC(2829, 0);
|
||||
JUT_ASSERT(2829, FALSE);
|
||||
} else {
|
||||
pCatDoor->_toDoorOpened();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user