mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-18 04:48:21 -04:00
More -Wpointer-arith fixes
This commit is contained in:
@@ -3082,7 +3082,7 @@ cXyz* daAlink_c::getNeckAimPos(cXyz* param_0, int* param_1, int param_2) {
|
||||
}
|
||||
} else if (field_0x35c4.abs2XZ() > 1.0f && checkModeFlg(1)) {
|
||||
f32 var_f31;
|
||||
if (checkWolf() != NULL) {
|
||||
if (checkWolf() != 0) {
|
||||
var_f31 = 80.0f;
|
||||
} else {
|
||||
var_f31 = 150.0f;
|
||||
|
||||
@@ -113,11 +113,11 @@ int daCoachFire_c::execute() {
|
||||
dAttention_c* attn = dComIfGp_getAttention();
|
||||
if (attn->LockonTruth()) {
|
||||
if (attn->LockonTarget(0) != this) {
|
||||
if (coach->deleteFireArrowFromList(fopAcM_GetID(this)) != NULL) {
|
||||
if (coach->deleteFireArrowFromList(fopAcM_GetID(this)) != false) {
|
||||
fopAcM_delete(this);
|
||||
}
|
||||
}
|
||||
} else if (coach->deleteFireArrowFromList(fopAcM_GetID(this)) != NULL) {
|
||||
} else if (coach->deleteFireArrowFromList(fopAcM_GetID(this)) != false) {
|
||||
fopAcM_delete(this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1380,7 +1380,7 @@ int daDoor20_c::createKey() {
|
||||
}
|
||||
field_0x5ec =
|
||||
fopAcM_createChildFromOffset(PROC_Obj_Lv5Key, fopAcM_GetID(this), 0xffffffff,
|
||||
&cStack_28, roomNo, &cStack_30, &scale, 0xffffffff, 0);
|
||||
&cStack_28, roomNo, &cStack_30, &scale, -1, 0);
|
||||
break;
|
||||
default:
|
||||
OSReport_Error("シャッタードア:鍵タイプが不明です\n"); // Shutter door: key type unknown
|
||||
@@ -1399,7 +1399,7 @@ int daDoor20_c::createKey() {
|
||||
}
|
||||
field_0x5ec =
|
||||
fopAcM_createChildFromOffset(PROC_OBJ_KEYHOLE, fopAcM_GetID(this), 0xffffffff,
|
||||
&cStack_28, roomNo, &cStack_30, &scale, 0xffffffff, 0);
|
||||
&cStack_28, roomNo, &cStack_30, &scale, -1, 0);
|
||||
}
|
||||
|
||||
current.pos = prevPos;
|
||||
|
||||
@@ -330,7 +330,7 @@ static void e_arrow_spin(e_arrow_class* i_this) {
|
||||
}
|
||||
|
||||
static void* s_limit_sub(void* i_actor, void* i_data) {
|
||||
if (fopAcM_IsActor(i_actor) != NULL && i_actor != i_data &&
|
||||
if (fopAcM_IsActor(i_actor) != FALSE && i_actor != i_data &&
|
||||
fopAcM_GetName(i_actor) == PROC_E_ARROW &&
|
||||
static_cast<e_arrow_class*>(i_actor)->mAction == ACTION_ARROW_FIRE &&
|
||||
fabsf(static_cast<e_arrow_class*>(i_actor)->field_0xa00.z -
|
||||
|
||||
@@ -93,7 +93,7 @@ int daE_BG_c::ctrlJoint(J3DJoint* i_joint, J3DModel* i_model) {
|
||||
}
|
||||
|
||||
int daE_BG_c::JointCallBack(J3DJoint* i_joint, int param_1) {
|
||||
if (param_1 == NULL) {
|
||||
if (param_1 == 0) {
|
||||
J3DModel* model = j3dSys.getModel();
|
||||
daE_BG_c* bg = (daE_BG_c*)model->getUserArea();
|
||||
if (bg != NULL) {
|
||||
|
||||
@@ -659,7 +659,7 @@ int daE_DF_c::Create() {
|
||||
return cPhs_ERROR_e;
|
||||
}
|
||||
|
||||
if (fopAcM_entrySolidHeap(this, useHeapInit, 0x1a40) == NULL) {
|
||||
if (fopAcM_entrySolidHeap(this, useHeapInit, 0x1a40) == false) {
|
||||
return cPhs_ERROR_e;
|
||||
}
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ int daE_GI_c::ctrlJoint(J3DJoint* i_joint, J3DModel* i_model) {
|
||||
}
|
||||
|
||||
int daE_GI_c::JointCallBack(J3DJoint* i_joint, int param_1) {
|
||||
if (param_1 == NULL) {
|
||||
if (param_1 == 0) {
|
||||
J3DModel* model = j3dSys.getModel();
|
||||
daE_GI_c* a_this = (daE_GI_c*)model->getUserArea();
|
||||
|
||||
|
||||
@@ -119,7 +119,7 @@ int daE_HP_c::ctrlJoint(J3DJoint* i_joint, J3DModel* i_model) {
|
||||
}
|
||||
|
||||
int daE_HP_c::JointCallBack(J3DJoint* i_joint, int param_1) {
|
||||
if (param_1 == NULL) {
|
||||
if (param_1 == 0) {
|
||||
J3DModel* model = j3dSys.getModel();
|
||||
daE_HP_c* poe = (daE_HP_c*)model->getUserArea();
|
||||
if (poe != NULL) {
|
||||
@@ -155,7 +155,7 @@ int daE_HP_c::LampCtrlJoint(J3DJoint* i_joint, J3DModel* i_model) {
|
||||
}
|
||||
|
||||
int daE_HP_c::LampJointCallBack(J3DJoint* i_joint, int param_1) {
|
||||
if (param_1 == NULL) {
|
||||
if (param_1 == 0) {
|
||||
J3DModel* model = j3dSys.getModel();
|
||||
daE_HP_c* poe = (daE_HP_c*)model->getUserArea();
|
||||
if (poe != NULL) {
|
||||
|
||||
@@ -382,7 +382,7 @@ void daFmtMng_c::create_init() {
|
||||
for (int i = 0; i < mFormationLine * mFormationRow; i++, member++) {
|
||||
member->mNpcId = fopAcM_createChild(0x294, fopAcM_GetID(this), (inTime << 0x10) | 0x200,
|
||||
&member->field_0x04, fopAcM_GetRoomNo(this),
|
||||
&home.angle, NULL, 0xffffffff, NULL);
|
||||
&home.angle, NULL, -1, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+14
-14
@@ -188,7 +188,7 @@ bool daKago_c::checkBck(int param_0) {
|
||||
}
|
||||
|
||||
int daKago_c::draw() {
|
||||
if (field_0x6de == NULL) {
|
||||
if (field_0x6de == 0) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -692,7 +692,7 @@ int daKago_c::setSceneChange(int param_0) {
|
||||
|
||||
void daKago_c::createBalloonScore() {
|
||||
if (field_0x6e7 != 0 && mBalloon2DId == fpcM_ERROR_PROCESS_ID_e) {
|
||||
mBalloon2DId = fopAcM_create(PROC_BALLOON2D, 0, 0, 0xffffffff, 0, 0, 0xffffffff);
|
||||
mBalloon2DId = fopAcM_create(PROC_BALLOON2D, 0, 0, 0xffffffff, 0, 0, -1);
|
||||
field_0x6e9 = 1;
|
||||
}
|
||||
}
|
||||
@@ -1199,7 +1199,7 @@ void daKago_c::executeFly() {
|
||||
}
|
||||
if (field_0x744 == 3) {
|
||||
cLib_chaseUC(&field_0x6de, 0, 4);
|
||||
cLib_addCalcAngleS(¤t.angle.x, 0xffffe000, 8, 0x100, 0x10);
|
||||
cLib_addCalcAngleS(¤t.angle.x, -8192, 8, 0x100, 0x10);
|
||||
} else {
|
||||
cLib_addCalcAngleS(¤t.angle.x, unkInt2, 8, 0x100, 0x10);
|
||||
}
|
||||
@@ -2230,7 +2230,7 @@ bool daKago_c::PerchDemoAwayForward() {
|
||||
if (field_0x728 < 30) {
|
||||
cLib_addCalcAngleS(¤t.angle.x, 0, 8, 0x100, 0x40);
|
||||
} else {
|
||||
cLib_addCalcAngleS(¤t.angle.x, 0xffffe000, 8, 0x100, 0x40);
|
||||
cLib_addCalcAngleS(¤t.angle.x, -8192, 8, 0x100, 0x40);
|
||||
}
|
||||
|
||||
shape_angle.x = current.angle.x;
|
||||
@@ -2277,7 +2277,7 @@ bool daKago_c::PerchDemoAwayForward() {
|
||||
|
||||
cLib_chaseF(&field_0x6f8, 30.0f, 1.0f);
|
||||
|
||||
cLib_addCalcAngleS(¤t.angle.x, 0xffffe000, 8, 0x100, 0x40);
|
||||
cLib_addCalcAngleS(¤t.angle.x, -8192, 8, 0x100, 0x40);
|
||||
shape_angle.x = current.angle.x;
|
||||
shape_angle.y = current.angle.y;
|
||||
|
||||
@@ -2547,7 +2547,7 @@ bool daKago_c::executeFirstDemo() {
|
||||
|
||||
if (field_0x728 > 30) {
|
||||
cLib_chaseF(&field_0x6cc, 350.0f, 4.0f);
|
||||
cLib_addCalcAngleS(&field_0x718, 0xfffff800, 8, 0x100, 0x10);
|
||||
cLib_addCalcAngleS(&field_0x718, -2048, 8, 0x100, 0x10);
|
||||
} else {
|
||||
cLib_chaseF(&field_0x6cc, 350.0f, 6.0f);
|
||||
cLib_addCalcAngleS(&field_0x718, 0x400, 8, 0x200, 0x10);
|
||||
@@ -2699,7 +2699,7 @@ bool daKago_c::executeFirstDemo() {
|
||||
case 6:
|
||||
dComIfGp_getEvent()->setSkipProc(this, DemoSkipCallBack, 2);
|
||||
|
||||
cLib_addCalcAngleS(¤t.angle.x, 0xffffe000, 8, 0x100, 0x40);
|
||||
cLib_addCalcAngleS(¤t.angle.x, -8192, 8, 0x100, 0x40);
|
||||
shape_angle.x = current.angle.x;
|
||||
shape_angle.y = current.angle.y;
|
||||
|
||||
@@ -2944,7 +2944,7 @@ void daKago_c::executeLandingLakeHairia() {
|
||||
speedF = field_0x6f8 * std::abs(cM_scos(current.angle.x));
|
||||
speed.y = -field_0x6f8 * cM_ssin(current.angle.x);
|
||||
|
||||
cLib_chaseAngleS(&shape_angle.x, 0xffffe000, 0x100);
|
||||
cLib_chaseAngleS(&shape_angle.x, -8192, 0x100);
|
||||
current.angle.x = shape_angle.x;
|
||||
|
||||
if (field_0x728 == 90) {
|
||||
@@ -3078,7 +3078,7 @@ void daKago_c::executeLandingBoartHouse() {
|
||||
speedF = field_0x6f8 * std::abs(cM_scos(current.angle.x));
|
||||
speed.y = -field_0x6f8 * cM_ssin(current.angle.x);
|
||||
|
||||
cLib_chaseAngleS(&shape_angle.x, 0xffffe000, 0x100);
|
||||
cLib_chaseAngleS(&shape_angle.x, -8192, 0x100);
|
||||
current.angle.x = shape_angle.x;
|
||||
|
||||
if (field_0x728 == 0x50) {
|
||||
@@ -3391,7 +3391,7 @@ void daKago_c::setDashBlurEffect(int param_0) {
|
||||
field_0x6be.y = shape_angle.y;
|
||||
field_0x6be.z = 0;
|
||||
}
|
||||
field_0xb40 = dComIfGp_particle_set(field_0xb40, 0x860f, &cameraEyeOffset, &tevStr, &field_0x6be, 0, 0xff, 0, 0xffffffff, 0, 0, 0);
|
||||
field_0xb40 = dComIfGp_particle_set(field_0xb40, 0x860f, &cameraEyeOffset, &tevStr, &field_0x6be, 0, 0xff, 0, -1, 0, 0, 0);
|
||||
}
|
||||
|
||||
void daKago_c::setWallHitEffect(cXyz param_0, int param_1) {
|
||||
@@ -3422,7 +3422,7 @@ void daKago_c::setSibukiEffect() {
|
||||
for (int i = 0; i < 3; i++) {
|
||||
field_0xb44[i] =
|
||||
dComIfGp_particle_set(field_0xb44[i], kago_wave_id[i], &acStack_28, &tevStr, &cStack_30,
|
||||
0, 0xff, 0, 0xffffffff, 0, 0, 0);
|
||||
0, 0xff, 0, -1, 0, 0, 0);
|
||||
}
|
||||
|
||||
if (field_0x6e7 == 0) {
|
||||
@@ -3436,7 +3436,7 @@ void daKago_c::setDashSibukiEffect() {
|
||||
cXyz acStack_20(current.pos.x, field_0x70c + l_HIO.mYOffsetFromWaterSurface, current.pos.z);
|
||||
csXyz cStack_28(0, shape_angle.y, 0);
|
||||
field_0xb50 = dComIfGp_particle_set(field_0xb50, 0x86fe, &acStack_20, &tevStr, &cStack_28, 0,
|
||||
0xff, 0, 0xffffffff, 0, 0, 0);
|
||||
0xff, 0, -1, 0, 0, 0);
|
||||
}
|
||||
|
||||
void daKago_c::setWaterFallEffect() {
|
||||
@@ -3450,7 +3450,7 @@ void daKago_c::setWaterFallEffect() {
|
||||
for (int i = 0; i < 2; i++) {
|
||||
field_0xb44[i] =
|
||||
dComIfGp_particle_set(field_0xb44[i], kago_wave_id[i], &acStack_28, &tevStr, &cStack_30,
|
||||
0, 0xff, 0, 0xffffffff, 0, 0, 0);
|
||||
0, 0xff, 0, -1, 0, 0, 0);
|
||||
}
|
||||
if (field_0x6e7 == 0) {
|
||||
mSound.startCreatureSoundLevel(Z2SE_EN_YC_SPLASH, 0, -1);
|
||||
@@ -3734,7 +3734,7 @@ int daKago_c::ctrlJoint(J3DJoint* param_0, J3DModel* param_1) {
|
||||
}
|
||||
|
||||
int daKago_c::JointCallBack(J3DJoint* param_0, int param_1) {
|
||||
if (param_1 == NULL) {
|
||||
if (param_1 == 0) {
|
||||
J3DModel* model = j3dSys.getModel();
|
||||
daKago_c* kago = (daKago_c*)model->getUserArea();
|
||||
if (kago != NULL) {
|
||||
|
||||
@@ -97,7 +97,7 @@ int daNbomb_c::searchEnemy(fopAc_ac_c* i_enemy) {
|
||||
|
||||
static void* daNbomb_searchEnemy(fopAc_ac_c* i_actor, void* i_data) {
|
||||
if (fopAcM_GetGroup(i_actor) == fopAc_ENEMY_e &&
|
||||
((daNbomb_c*)i_data)->searchEnemy(i_actor) != NULL)
|
||||
((daNbomb_c*)i_data)->searchEnemy(i_actor) != 0)
|
||||
{
|
||||
return i_actor;
|
||||
}
|
||||
|
||||
@@ -362,7 +362,7 @@ int daNpcChin_c::CreateHeap() {
|
||||
|
||||
setMotionAnm(motionAnmParam, 0.0f);
|
||||
|
||||
if (field_0xe24 != 0 && mSpotLight.loadModel() == NULL) {
|
||||
if (field_0xe24 != 0 && mSpotLight.loadModel() == 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -439,7 +439,7 @@ int daNpcChin_c::createHeapCallBack(fopAc_ac_c* i_this) {
|
||||
}
|
||||
|
||||
int daNpcChin_c::ctrlJointCallBack(J3DJoint* i_joint, int param_1) {
|
||||
if (param_1 == NULL) {
|
||||
if (param_1 == 0) {
|
||||
J3DModel* model = j3dSys.getModel();
|
||||
daNpcChin_c* chin = (daNpcChin_c*)model->getUserArea();
|
||||
if (chin != NULL) {
|
||||
|
||||
@@ -1791,7 +1791,7 @@ int daNpc_Hanjo_c::takayose(void* param_0) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (daPy_py_c::checkNowWolf() && mCyl2.ChkCoHit() != NULL) {
|
||||
if (daPy_py_c::checkNowWolf() && mCyl2.ChkCoHit() != 0) {
|
||||
if (!daPy_getPlayerActorClass()->checkPlayerFly() ||
|
||||
daPy_getPlayerActorClass()->checkAutoJump() ||
|
||||
daPy_getPlayerActorClass()->checkWolfTriggerJump())
|
||||
|
||||
@@ -2498,7 +2498,7 @@ static int daNpc_Henna_Execute(npc_henna_class* i_this) {
|
||||
mDoMtx_stack_c::transS(-460.0f + AREG_F(0), 51.0f + AREG_F(1),
|
||||
-240.0f + AREG_F(2));
|
||||
mDoMtx_stack_c::YrotM(-17729 + AREG_S(0));
|
||||
mDoMtx_stack_c::XrotM(AREG_S(1) - 0x8107);
|
||||
mDoMtx_stack_c::XrotM((s16)(AREG_S(1) - 0x8107));
|
||||
mDoMtx_stack_c::ZrotM(AREG_S(2) + 2000 + sp_0xe);
|
||||
} else {
|
||||
mDoMtx_stack_c::transS(-790.0f + AREG_F(0), 153.0f + AREG_F(1),
|
||||
|
||||
@@ -4965,7 +4965,7 @@ int daNpc_Kn_c::setPrtcl() {
|
||||
mParticleMngr[i].mpModel == true ? &mParticleMngr[i].mAngle : NULL,
|
||||
0, fopAcM_GetRoomNo(this), 0.0f, speedF);
|
||||
|
||||
if (mParticleMngr[i].mpModel != NULL) {
|
||||
if (mParticleMngr[i].mpModel != false) {
|
||||
emitter = mParticleMngr[i].mManager.getCenterEmitter(0, 0);
|
||||
if (emitter != NULL) {
|
||||
switch (i) {
|
||||
|
||||
@@ -421,7 +421,7 @@ int daNpcRafrel_c::createHeapCallBack(fopAc_ac_c* i_this) {
|
||||
}
|
||||
|
||||
int daNpcRafrel_c::ctrlJointCallBack(J3DJoint* i_joint, int param_1) {
|
||||
if (param_1 == NULL) {
|
||||
if (param_1 == 0) {
|
||||
J3DModel* mdl_p = j3dSys.getModel();
|
||||
daNpcRafrel_c* i_this = (daNpcRafrel_c*)mdl_p->getUserArea();
|
||||
|
||||
|
||||
@@ -1340,7 +1340,7 @@ void daNPC_TK_c::executeBack() {
|
||||
if (current.pos.y > unkXyz1.y) {
|
||||
cLib_chaseAngleS(&shape_angle.x, 0x2000, 0x400);
|
||||
} else {
|
||||
cLib_chaseAngleS(&shape_angle.x, 0xffffe000, 0x400);
|
||||
cLib_chaseAngleS(&shape_angle.x, -8192, 0x400);
|
||||
}
|
||||
} else {
|
||||
cLib_chaseAngleS(&field_0x69c, 0x200, 0x10);
|
||||
@@ -1379,7 +1379,7 @@ void daNPC_TK_c::executeBack() {
|
||||
if (current.pos.y > unkXyz1.y) {
|
||||
cLib_chaseAngleS(&shape_angle.x, 0x2000, 0x400);
|
||||
} else {
|
||||
cLib_chaseAngleS(&shape_angle.x, 0xffffe000, 0x400);
|
||||
cLib_chaseAngleS(&shape_angle.x, -8192, 0x400);
|
||||
}
|
||||
} else {
|
||||
cLib_chaseAngleS(&field_0x69c, 0x200, 0x10);
|
||||
@@ -2456,7 +2456,7 @@ void daNPC_TK_c::executeWolfPerch() {
|
||||
|
||||
void daNPC_TK_c::executeResistanceDemo() {
|
||||
daNpcMoiR_c* npcMoiR;
|
||||
if (fopAcM_SearchByName(PROC_NPC_MOIR, (fopAc_ac_c**)&npcMoiR) == NULL || npcMoiR == NULL) {
|
||||
if (fopAcM_SearchByName(PROC_NPC_MOIR, (fopAc_ac_c**)&npcMoiR) == 0 || npcMoiR == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2623,7 +2623,7 @@ void daNPC_TK_c::executeResistanceDemo() {
|
||||
// fallthrough
|
||||
|
||||
case 8: {
|
||||
cLib_addCalcAngleS2(&field_0x6a2, 0xffffdc00, 8, 0x200);
|
||||
cLib_addCalcAngleS2(&field_0x6a2, -9216, 8, 0x200);
|
||||
cLib_addCalcAngleS2(&field_0x6a0, 0x1000, 8, 0x200);
|
||||
cLib_addCalcAngleS2(&field_0x6aa, 0x2000, 8, 0x200);
|
||||
|
||||
|
||||
@@ -176,7 +176,7 @@ static void Wind_effect(npc_tkj2_class* i_this) {
|
||||
if ((s16)(sVar1 - i_this->field_0x5c4) < 0) {
|
||||
cLib_addCalcAngleS(&a_this->shape_angle.z, 0x2000, 0x10, 0x1000, 0);
|
||||
} else {
|
||||
cLib_addCalcAngleS(&a_this->shape_angle.z, 0xFFFFE000, 2, 0x1000, 0);
|
||||
cLib_addCalcAngleS(&a_this->shape_angle.z, -8192, 2, 0x1000, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -904,12 +904,12 @@ int daNpc_Uri_c::selectAction() {
|
||||
|
||||
switch (mType) {
|
||||
case TYPE_1:
|
||||
if (field_0x100d != NULL) {
|
||||
if (field_0x100d != 0) {
|
||||
field_0xfc0[0] = &daNpc_Uri_c::sitWait;
|
||||
} else {
|
||||
if (field_0x100e != NULL) {
|
||||
if (field_0x100e != 0) {
|
||||
/* T_0007 - Ordon Village - During Uli's pick-up tutorial */
|
||||
if (daNpcT_chkTmpBit(7) && field_0x100f == NULL) {
|
||||
if (daNpcT_chkTmpBit(7) && field_0x100f == 0) {
|
||||
field_0xfc0[0] = &daNpc_Uri_c::walk;
|
||||
} else {
|
||||
field_0xfc0[0] = &daNpc_Uri_c::wait;
|
||||
@@ -981,7 +981,7 @@ int daNpc_Uri_c::getTutorialCond(cXyz param_1) {
|
||||
field_0x1000 = mpHIO->m.field_0xa8 - 100.0f;
|
||||
return 5;
|
||||
}
|
||||
if (field_0x1009 != NULL) {
|
||||
if (field_0x1009 != 0) {
|
||||
return 8;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -462,7 +462,7 @@ int daNpc_ykW_c::createHeapCallBack(fopAc_ac_c* i_this) {
|
||||
}
|
||||
|
||||
int daNpc_ykW_c::ctrlJointCallBack(J3DJoint* i_joint, int param_1) {
|
||||
if (param_1 == NULL) {
|
||||
if (param_1 == 0) {
|
||||
J3DModel* model = j3dSys.getModel();
|
||||
daNpc_ykW_c* ykw = (daNpc_ykW_c*)model->getUserArea();
|
||||
if (ykw != 0) {
|
||||
|
||||
@@ -253,7 +253,7 @@ int daObjAvalanche_c::demoProc() {
|
||||
void daObjAvalanche_c::setEffect() {
|
||||
cXyz acStack_18(0.0f, 0.0f, 0.0f);
|
||||
csXyz cStack_20(0, 0, 0);
|
||||
dComIfGp_particle_set(0x8c51, &acStack_18, &cStack_20, NULL, 0xff, NULL, 0xffffffff, NULL, NULL,
|
||||
dComIfGp_particle_set(0x8c51, &acStack_18, &cStack_20, NULL, 0xff, NULL, -1, NULL, NULL,
|
||||
NULL);
|
||||
}
|
||||
|
||||
|
||||
@@ -186,8 +186,8 @@ int daObjMarm_c::Create() {
|
||||
mIsYRotForward = 0;
|
||||
}
|
||||
|
||||
if (dComIfG_Bgsp().Regist((dBgW_Base*)mpBgW1, this) != NULL ||
|
||||
dComIfG_Bgsp().Regist((dBgW_Base*)mpBgW2, this) != NULL)
|
||||
if (dComIfG_Bgsp().Regist((dBgW_Base*)mpBgW1, this) != false ||
|
||||
dComIfG_Bgsp().Regist((dBgW_Base*)mpBgW2, this) != false)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
@@ -1060,11 +1060,11 @@ void daObjMarm_c::debugDraw() {
|
||||
}
|
||||
|
||||
int daObjMarm_c::Delete() {
|
||||
if (mpBgW1 != NULL && mpBgW1->ChkUsed() != NULL) {
|
||||
if (mpBgW1 != NULL && mpBgW1->ChkUsed() != false) {
|
||||
dComIfG_Bgsp().Release(mpBgW1);
|
||||
}
|
||||
|
||||
if (mpBgW2 != NULL && mpBgW2->ChkUsed() != NULL) {
|
||||
if (mpBgW2 != NULL && mpBgW2->ChkUsed() != false) {
|
||||
dComIfG_Bgsp().Release(mpBgW2);
|
||||
}
|
||||
endMagneHoleEffect();
|
||||
|
||||
Reference in New Issue
Block a user