mirror of
https://github.com/zeldaret/tp
synced 2026-09-04 02:19:40 -04:00
Fix optimization flag for Shield (#3004)
* Fix optimization flag for Shield * Minor debug work * Fix NULL asserts
This commit is contained in:
@@ -943,7 +943,7 @@ bool daNpcAshB_c::demo(void* param_0) {
|
||||
s32 staff_id = evtmgr.getMyStaffId(l_myName, NULL, 0);
|
||||
if (staff_id != -1) {
|
||||
mStaffID = staff_id;
|
||||
JUT_ASSERT(1523, mEvtSeqList[mOrderEvtNo] != 0);
|
||||
JUT_ASSERT(1523, mEvtSeqList[mOrderEvtNo] != NULL);
|
||||
if ((this->*(mEvtSeqList[mOrderEvtNo]))(staff_id)) {
|
||||
evtmgr.cutEnd(staff_id);
|
||||
}
|
||||
|
||||
@@ -147,7 +147,7 @@ int useHeapInit(fopAc_ac_c* i_this) {
|
||||
J3DModelData* modelData =
|
||||
static_cast<J3DModelData*>(dComIfG_getObjectRes("Obj_Bef", bef_bmd[a_this->mEffectType]));
|
||||
|
||||
JUT_ASSERT(339, modelData != 0);
|
||||
JUT_ASSERT(339, modelData != NULL);
|
||||
|
||||
a_this->mpModel = mDoExt_J3DModel__create(modelData, 0x80000, 0x11000084);
|
||||
|
||||
|
||||
@@ -349,11 +349,13 @@ static int daItemShield_Execute(daItemShield_c* i_this) {
|
||||
}
|
||||
|
||||
static int daItemShield_Delete(daItemShield_c* i_this) {
|
||||
fopAcM_RegisterDeleteID(i_this, "ObjSShield");
|
||||
return i_this->_delete();
|
||||
}
|
||||
|
||||
static int daItemShield_Create(fopAc_ac_c* i_this) {
|
||||
return static_cast<daItemShield_c*>(i_this)->create();
|
||||
fopAcM_RegisterCreateID(daItemShield_c, i_this, "ObjSShield");
|
||||
return a_this->create();
|
||||
}
|
||||
|
||||
static actor_method_class l_daItemShield_Method = {
|
||||
|
||||
@@ -59,17 +59,20 @@ static int daTagWatchGe_Delete(daTagWatchGe_c* i_this) {
|
||||
|
||||
int daTagWatchGe_c::create() {
|
||||
fopAcM_ct(this, daTagWatchGe_c);
|
||||
OS_REPORT("Tag_WatchGe PARAM %x\n", fopAcM_GetParam(this));
|
||||
mGroupNo = fopAcM_GetParam(this);
|
||||
|
||||
if (mGroupNo == 0xFF) {
|
||||
OS_REPORT("監視するグェーのグループが指定されてません!");
|
||||
return cPhs_ERROR_e;
|
||||
} else {
|
||||
field_0x568 = fopAcM_GetParam(this) >> 8;
|
||||
field_0x568 = (fopAcM_GetParam(this) >> 8) & 0xFF;
|
||||
|
||||
if (field_0x568 == 0xFF) {
|
||||
OS_REPORT("グェー監視タグのスイッチが指定されてません!");
|
||||
return cPhs_ERROR_e;
|
||||
}
|
||||
if (dComIfGs_isSwitch(field_0x568,fopAcM_GetRoomNo(this)) != 0) {
|
||||
if (dComIfGs_isSwitch(field_0x568, fopAcM_GetRoomNo(this)) != 0) {
|
||||
return cPhs_ERROR_e;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,6 +117,7 @@ int daTitle_c::create() {
|
||||
field_0x5f9 = 0;
|
||||
|
||||
m2DHeap = JKRExpHeap::create(0x8000, mDoExt_getGameHeap(), false);
|
||||
JUT_ASSERT(345, m2DHeap != NULL);
|
||||
loadWait_init();
|
||||
g_daTitHIO.field_0x4 = -1;
|
||||
|
||||
|
||||
@@ -173,7 +173,7 @@ bool dMpath_HIO_file_base_c::readBinaryFile(const char* param_1) {
|
||||
if (file.open(JORFile::EFlags_READ, r26, NULL, NULL, NULL)) {
|
||||
s32 r28 = file.getFileSize();
|
||||
char* buf = new char[r28];
|
||||
JUT_ASSERT(855, buf != 0);
|
||||
JUT_ASSERT(855, buf != NULL);
|
||||
file.readData(buf, r28);
|
||||
copyReadBufToData(buf, r28);
|
||||
OSReport("write read success!::%6d\n", r28);
|
||||
|
||||
@@ -189,7 +189,7 @@ dMenu_Fmap_c::dMenu_Fmap_c(JKRExpHeap* i_heap, STControl* i_stick, CSTControl* i
|
||||
}
|
||||
|
||||
mpTalkHeap = JKRCreateExpHeap(0x32000, mpHeap, false);
|
||||
JUT_ASSERT(359, mpTalkHeap != 0);
|
||||
JUT_ASSERT(359, mpTalkHeap != NULL);
|
||||
field_0x200 = 0;
|
||||
mIsWarpMap = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user