mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-17 12:39:27 -04:00
Various debug conditional compilation cleanup (#2915)
* Global: Define DEBUG as 0 if not already defined * Clean up DEBUG-guarded code
This commit is contained in:
@@ -1690,7 +1690,7 @@ daAlinkHIO_c::daAlinkHIO_c() {}
|
||||
|
||||
daAlinkHIO_wolf_c::~daAlinkHIO_wolf_c() {}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
daAlinkHIO_swim_c::~daAlinkHIO_swim_c() {}
|
||||
|
||||
daAlinkHIO_grab_c::~daAlinkHIO_grab_c() {}
|
||||
@@ -6573,10 +6573,10 @@ void daAlink_c::commonDoubleAnime(J3DAnmTransform* param_0, J3DAnmTransform* par
|
||||
int daAlink_c::setDoubleAnime(f32 i_blendRate, f32 i_anmSpeedA, f32 i_anmSpeedB,
|
||||
daAlink_c::daAlink_ANM i_anmA, daAlink_c::daAlink_ANM i_anmB,
|
||||
int param_5, f32 i_morf) {
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (checkWolf()) {
|
||||
// "Player is Wolf, but setting Link animation\n"
|
||||
OSReport("狼なのにリンクアニメ設定\n");
|
||||
OS_REPORT("狼なのにリンクアニメ設定\n");
|
||||
JUT_ASSERT(8591, FALSE);
|
||||
}
|
||||
#endif
|
||||
@@ -10883,7 +10883,7 @@ int daAlink_c::orderZTalk() {
|
||||
dMeter2Info_onUseButton(0x800);
|
||||
|
||||
if (midnaTalkTrigger()
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
&& (!mDoCPd_c::getHoldL(PAD_1) || !mDoCPd_c::getHoldR(PAD_1))
|
||||
#endif
|
||||
)
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include "d/actor/d_a_alink.h"
|
||||
#include "d/d_com_inf_game.h"
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
|
||||
static void daAlinkHIO_setAnmGenMessage(daAlinkHIO_anm_c* i_anmP, JORMContext* ctx, char* param_3,
|
||||
f32 param_4, int param_5) {
|
||||
|
||||
@@ -2145,7 +2145,7 @@ int daAlink_c::procCoGetItem() {
|
||||
}
|
||||
|
||||
daItemBase_c* item_partner_p = (daItemBase_c*)fopAcM_getItemEventPartner(this);
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (item_partner_p != NULL && fopAcM_GetName(item_partner_p) != PROC_ITEM &&
|
||||
fopAcM_GetName(item_partner_p) != PROC_Demo_Item)
|
||||
{
|
||||
@@ -3603,7 +3603,7 @@ int daAlink_c::procNotUseItem() {
|
||||
|
||||
if (mProcVar3.field_0x300e != 0) {
|
||||
daItemBase_c* item_partner_p = (daItemBase_c*)fopAcM_getItemEventPartner(this);
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (item_partner_p != NULL && fopAcM_GetName(item_partner_p) != PROC_ITEM &&
|
||||
fopAcM_GetName(item_partner_p) != PROC_Demo_Item)
|
||||
{
|
||||
|
||||
+11
-10
@@ -8,7 +8,7 @@
|
||||
#include "d/actor/d_a_andsw.h"
|
||||
#include "d/d_procname.h"
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
daAndsw_HIO_c l_HIO;
|
||||
|
||||
daAndsw_HIO_c::daAndsw_HIO_c() {
|
||||
@@ -42,7 +42,7 @@ int daAndsw_c::create() {
|
||||
return cPhs_ERROR_e;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
l_HIO.entryHIO("SW監視");
|
||||
#endif
|
||||
|
||||
@@ -58,7 +58,7 @@ int daAndsw_c::execute() {
|
||||
if (mTimer == 0) {
|
||||
fopAcM_offSwitch(this,mSwNo);
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (l_HIO.field_0x6 != 0) {
|
||||
OS_REPORT("-- SW監視状態出力 --\n");
|
||||
OS_REPORT("sw<%d>OFFしました\n", mSwNo);
|
||||
@@ -70,19 +70,20 @@ int daAndsw_c::execute() {
|
||||
OS_REPORT("SW監視:SWOFFしたので処理終わりますSW<%d>\n", mSwNo);
|
||||
}
|
||||
}
|
||||
}
|
||||
#ifdef DEBUG
|
||||
else if (l_HIO.field_0x6 != 0) {
|
||||
OS_REPORT("sw2<%d>を待っています\n", mSwNo2);
|
||||
l_HIO.field_0x6 = 0;
|
||||
}
|
||||
} else {
|
||||
#if DEBUG
|
||||
if (l_HIO.field_0x6 != 0) {
|
||||
OS_REPORT("sw2<%d>を待っています\n", mSwNo2);
|
||||
l_HIO.field_0x6 = 0;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
int daAndsw_c::_delete() {
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
l_HIO.removeHIO();
|
||||
#endif
|
||||
return 1;
|
||||
|
||||
@@ -53,7 +53,7 @@ daB_BH_HIO_c::daB_BH_HIO_c() {
|
||||
down_revive_time = 250;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
void daB_BH_HIO_c::genMessage(JORMContext* ctx) {
|
||||
ctx->genLabel(" ボスデグババ手", 0x80000001, 0, NULL, 0xFFFF, 0xFFFF, 512, 24);
|
||||
ctx->genSlider("本体サイズ", &model_size, 0.0f, 5.0f, 0, NULL, 0xFFFF, 0xFFFF, 512, 24);
|
||||
@@ -962,17 +962,12 @@ static void damage_check(b_bh_class* i_this) {
|
||||
if (i_this->field_0xa24 != 0) {
|
||||
i_this->mCcSph.OffCoSetBit();
|
||||
|
||||
if (fpcM_Search(s_b_sub, i_this)
|
||||
#ifdef DEBUG
|
||||
|| mDoCPd_c::getTrigA(PAD_3)
|
||||
#endif
|
||||
)
|
||||
{
|
||||
if (fpcM_Search(s_b_sub, i_this) || (DEBUG && mDoCPd_c::getTrigA(PAD_3))) {
|
||||
if (i_this->field_0xa25 != 0) {
|
||||
i_this->mAction = ACTION_B_BOMB_EAT;
|
||||
dComIfGs_onOneZoneSwitch(14, -1);
|
||||
} else {
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (mDoCPd_c::getTrigA(PAD_3)) {
|
||||
b_bq_class* var_r25 = (b_bq_class*)fopAcM_SearchByID(a_this->parentActorID);
|
||||
var_r25->field_0x6fd = 1;
|
||||
|
||||
@@ -564,7 +564,7 @@ static void b_bq_wait(b_bq_class* i_this) {
|
||||
i_this->mSound.startCreatureVoice(Z2SE_EN_BQ_V_WAIT, -1);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (mDoCPd_c::getTrigRight(PAD_1)) {
|
||||
i_this->mAction = ACTION_END;
|
||||
i_this->mMode = 0;
|
||||
|
||||
@@ -360,7 +360,7 @@ int daB_DR_c::draw() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (WREG_S(0) != 0 || l_HIO.display_range) {
|
||||
cXyz sp24;
|
||||
cXyz sp18;
|
||||
@@ -1247,7 +1247,7 @@ void daB_DR_c::executeWait() {
|
||||
cXyz sp20;
|
||||
cXyz sp14;
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
dDbVw_Report(30, 100, "wait tyuu No Attack Timer:%d ", mTimer[2]);
|
||||
#endif
|
||||
|
||||
@@ -1311,7 +1311,7 @@ void daB_DR_c::executeFlyWait() {
|
||||
fopAc_ac_c* player = dComIfGp_getPlayer(0);
|
||||
cXyz sp8;
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (mMoveMode > 1) {
|
||||
if (mTimer[2] != 0) {
|
||||
dDbVw_Report(30, 100, "wait tyuu No Attack Timer:%d ", mTimer[2]);
|
||||
@@ -1383,7 +1383,7 @@ void daB_DR_c::executeTailHit() {
|
||||
cXyz mae;
|
||||
cXyz ato;
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (mTimer[0] != 0) {
|
||||
if (mMoveMode < 13) {
|
||||
dDbVw_Report(30, 100, "Tail Hit chance Timer:%d ", mTimer[0]);
|
||||
@@ -1734,7 +1734,7 @@ void daB_DR_c::executeWeekHit() {
|
||||
daPy_py_c* player = (daPy_py_c*)dComIfGp_getPlayer(0);
|
||||
cXyz sp50;
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (mTimer[2] != 0) {
|
||||
dDbVw_Report(30, 100, "week HIT chance Timer:%d ", mTimer[2]);
|
||||
}
|
||||
@@ -2133,7 +2133,7 @@ void daB_DR_c::executeBreathAttack() {
|
||||
s16 spA = 0;
|
||||
bool sp8 = false;
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (mTimer[3] != 0) {
|
||||
if (mMoveMode < 100) {
|
||||
dDbVw_Report(30, 100, "Breath tyuu No Attack Timer:%d ", mTimer[3]);
|
||||
@@ -2366,7 +2366,7 @@ void daB_DR_c::executeWindAttack() {
|
||||
|
||||
bool sp8 = 0;
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
dDbVw_Report(30, 100, "normal Timer:%d center Timer:%d ", mTimer[1], mTimer[2]);
|
||||
#endif
|
||||
|
||||
@@ -2900,7 +2900,7 @@ void daB_DR_c::executePillarSearch() {
|
||||
}
|
||||
|
||||
void daB_DR_c::executePillarWait() {
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
dDbVw_Report(30, 100, "Pole wait tyuu Timer:%d ", mTimer[0]);
|
||||
if (mTimer[1] != 0) {
|
||||
dDbVw_Report(30, 100, "sukosi zensin :%d ", mTimer[1]);
|
||||
|
||||
@@ -171,8 +171,7 @@ static daB_GM_HIO_c l_HIO;
|
||||
static int daB_GM_Draw(b_gm_class* i_this) {
|
||||
fopAc_ac_c* a_this = (fopAc_ac_c*)i_this;
|
||||
|
||||
#ifdef DEBUG
|
||||
# else
|
||||
#if !DEBUG
|
||||
g_env_light.settingTevStruct(0, &a_this->current.pos, &a_this->tevStr);
|
||||
#endif
|
||||
|
||||
@@ -187,7 +186,7 @@ static int daB_GM_Draw(b_gm_class* i_this) {
|
||||
}
|
||||
|
||||
J3DModel* model = i_this->mpModelMorf->getModel();
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
g_env_light.settingTevStruct(0, &a_this->current.pos, &a_this->tevStr);
|
||||
#endif
|
||||
g_env_light.setLightTevColorType_MAJI(model, &a_this->tevStr);
|
||||
@@ -1618,7 +1617,7 @@ static int daB_GM_Execute(b_gm_class* i_this) {
|
||||
fopAc_ac_c* player = dComIfGp_getPlayer(0);
|
||||
cXyz spD4, spC8;
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (mDoCPd_c::getTrigA(2) && i_this->mDemoMode == 0 && !i_this->mIsDisappear) {
|
||||
i_this->mAction = 0xB;
|
||||
i_this->mMode = 0x14;
|
||||
|
||||
@@ -2525,7 +2525,7 @@ static void action(b_gnd_class* i_this) {
|
||||
i_this->field_0xc7d = 0;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (mDoCPd_c::getTrigR(PAD_2)) {
|
||||
dScnKy_env_light_c* kankyo = dKy_getEnvlight();
|
||||
kankyo->wether = 1;
|
||||
|
||||
@@ -416,7 +416,7 @@ static void core_start(b_ob_class* i_this) {
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (mDoCPd_c::getTrigY(PAD_2)) {
|
||||
i_this->mMode = 2;
|
||||
i_this->mDemoAction = 30;
|
||||
|
||||
@@ -68,7 +68,7 @@ daBd_HIO_c::daBd_HIO_c() {
|
||||
field_0x1E = 0;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
/* daBd_HIO_c::genMessage (JORMContext *) */
|
||||
void daBd_HIO_c::genMessage(JORMContext* mctx) {
|
||||
mctx->genLabel("小鳥", 0x80000001, 0, NULL, 0xFFFF, 0xFFFF, 0x200, 24);
|
||||
|
||||
@@ -399,7 +399,7 @@ int daBg_c::draw() {
|
||||
break;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
sp50.a = 0xFF;
|
||||
if (g_kankyoHIO.navy.fish_pond_colreg_adjust_ON) {
|
||||
sp50 = g_kankyoHIO.navy.fish_pond_colreg_c0;
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include "JSystem/JAudio2/JAUSectionHeap.h"
|
||||
#include "Z2AudioLib/Z2Instances.h"
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
static BOOL l_debugMode;
|
||||
#endif
|
||||
|
||||
@@ -616,7 +616,7 @@ int daCanoe_c::execute() {
|
||||
mOldFrontPos = mFrontPos;
|
||||
mOldBackPos = mBackPos;
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (player->checkCanoeRideOwn(this) && daAlink_c::checkDebugMoveInput()) {
|
||||
if (l_debugMode) {
|
||||
l_debugMode = FALSE;
|
||||
|
||||
@@ -156,7 +156,7 @@ int daCoach2D_c::create() {
|
||||
return cPhs_ERROR_e;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
l_HOSTIO.entryHIO("馬車アイコン");
|
||||
#endif
|
||||
}
|
||||
@@ -166,7 +166,7 @@ int daCoach2D_c::create() {
|
||||
|
||||
int daCoach2D_c::destroy() {
|
||||
dComIfG_resDelete(this, l_arcName);
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
l_HOSTIO.removeHIO();
|
||||
#endif
|
||||
|
||||
@@ -186,7 +186,7 @@ int daCoach2D_c::draw() {
|
||||
}
|
||||
|
||||
int daCoach2D_c::execute() {
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
s32 freeSize = mDoExt_getCurrentHeap()->getTotalFreeSize();
|
||||
#endif
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#include "Z2AudioLib/Z2Instances.h"
|
||||
#include "m_Do/m_Do_lib.h"
|
||||
#include "d/actor/d_a_movie_player.h"
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
#include "d/d_debug_viewer.h"
|
||||
#endif
|
||||
|
||||
@@ -40,7 +40,7 @@ static UnknownLightData l_lightData = {
|
||||
0x00000000,
|
||||
};
|
||||
|
||||
#ifndef DEBUG
|
||||
#if !DEBUG
|
||||
// TODO: what is this?
|
||||
static const u8 lit_3727[0xC] = {};
|
||||
#endif
|
||||
@@ -113,7 +113,7 @@ void daDemo00_c::setBaseMtx() {
|
||||
|
||||
if (tevStr.mInitTimer == 1) {
|
||||
field_0x574 = shape_angle;
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
debug_field_0x570 = current.pos;
|
||||
debug_field_0x57c = shape_angle;
|
||||
#endif
|
||||
@@ -388,7 +388,7 @@ int daDemo00_c::createHeap() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
mModel.field_0x5d4->getBaseTRMtx()[0][0] = 1.0f;
|
||||
#endif
|
||||
mModel.field_0x5d4->calc();
|
||||
@@ -1725,7 +1725,7 @@ int daDemo00_c::draw() {
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (field_0x6aa > -1) {
|
||||
dDbVw_Report(0x32, 0x91, "DEMOTOOL ERR : Model ga arunoni hisyakai sindo meirei!!!!");
|
||||
OSReport_Error("\nDEMOTOOL ERR : Model ga arunoni hisyakai sindo meirei!!!!");
|
||||
@@ -1754,7 +1754,7 @@ int daDemo00_c::draw() {
|
||||
g_env_light.mDemoAttentionPoint = -1.0f;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
dDbVw_Report(300, 0x19, "DEMO Depth %f", g_env_light.mDemoAttentionPoint);
|
||||
#endif
|
||||
} else {
|
||||
@@ -1769,7 +1769,7 @@ int daDemo00_c::draw() {
|
||||
g_env_light.field_0x1278 = 1.0f;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
dDbVw_Report(10, 0x17C, "\nbloom pat[%d] ratio[%f]", g_env_light.field_0x1278, field_0x6ab);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ static cXyz l_wolf_offset = cXyz(13.0f, 135.0f, 57.0f);
|
||||
|
||||
static cXyz l_horse_offset = cXyz(0.0f, 20.0f, 54.0f);
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
|
||||
class DitemHIO_c
|
||||
: public mDoHIO_entry_c
|
||||
|
||||
@@ -23,7 +23,7 @@ public:
|
||||
|
||||
STATIC_ASSERT(sizeof(daE_DF_HIO_c) == 0xC);
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
inline void daE_DF_HIO_c::genMessage(JORMContext* i_ctx) {
|
||||
i_ctx->genLabel("デクレシア", 0x80000001, 0, NULL, 0xffff, 0xffff, 0x200, 0x18);
|
||||
i_ctx->genSlider("速度", &field_0x8, 0.0f, 100.0f, 0, NULL, 0xffff, 0xffff, 0x200, 0x18);
|
||||
|
||||
@@ -2581,7 +2581,7 @@ static void action(e_fm_class* i_this) {
|
||||
|
||||
i_this->mAngleToPlayer = fopAcM_searchPlayerAngleY(actor);
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (mDoCPd_c::getTrigStart(PAD_2) && i_this->mAction != ACTION_DOWN) {
|
||||
i_this->mAction = ACTION_DOWN;
|
||||
i_this->mMode = 0;
|
||||
|
||||
@@ -47,7 +47,7 @@ daE_MB_HIO_c::daE_MB_HIO_c() {
|
||||
reappear_time = 70;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
void daE_MB_HIO_c::genMessage(JORMContext* ctx) {
|
||||
ctx->genLabel(" ボス戦ブーメラン猿", 0x80000001, 0, NULL, 0xFFFF, 0xFFFF, 512, 24);
|
||||
ctx->genSlider("基本サイズ", &base_size, 0.0f, 5.0f, 0, NULL, 0xFFFF, 0xFFFF, 512, 24);
|
||||
|
||||
@@ -68,7 +68,7 @@ daE_NZ_HIO_c::daE_NZ_HIO_c() {
|
||||
mVanishingAlphaSpeed = 30.0f;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
void daE_NZ_HIO_c::genMessage(JORMContext* ctx) {
|
||||
// Ghost Rat
|
||||
ctx->genLabel(" 幽霊ネズミ", 0x80000001, 0, NULL, 0xffff, 0xffff, 0x200, 0x18);
|
||||
|
||||
@@ -89,7 +89,6 @@ int daE_PZ_c::draw() {
|
||||
}
|
||||
|
||||
if (arg0 == 10) {
|
||||
#ifdef DEBUG
|
||||
if (WREG_S(0) != 0) {
|
||||
GXColor color;
|
||||
color.r = 0xFF;
|
||||
@@ -98,7 +97,6 @@ int daE_PZ_c::draw() {
|
||||
color.a = 0xFA;
|
||||
dDbVw_drawCircleXlu(home.pos, 100.0f, color, TRUE, 12);
|
||||
}
|
||||
#endif
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ daE_WB_HIO_c::daE_WB_HIO_c() {
|
||||
mNoReins = 0;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
void daE_WB_HIO_c::genMessage(JORMContext* ctx) {
|
||||
ctx->genLabel(" イノシシ", 0x80000001, 0, NULL, 0xFFFF, 0xFFFF, 512, 24);
|
||||
ctx->genSlider("基本サイズ", &base_size, 0.0f, 5.0f, 0, NULL, 0xFFFF, 0xFFFF, 512, 24);
|
||||
|
||||
@@ -163,7 +163,7 @@ daE_WW_HIO_c::daE_WW_HIO_c() {
|
||||
move_range_debug_display = 0;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
void daE_WW_HIO_c::genMessage(JORMContext* mctx) {
|
||||
mctx->genLabel("ホワイトウルフォス", 0x80000001, 0, NULL, 0xFFFF, 0xFFFF, 0x200, 24);
|
||||
mctx->genSlider("モデルサイズ", &model_size, 0.0f, 10.0f, 0, NULL, 0xFFFF, 0xFFFF, 0x200, 24);
|
||||
@@ -245,7 +245,7 @@ void daE_WW_c::setHeadAngle() {
|
||||
|
||||
int daE_WW_c::draw() {
|
||||
if (mAction == ACTION_MASTER) {
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (l_HIO.move_range_debug_display != 0) {
|
||||
cXyz curr_pos = current.pos;
|
||||
curr_pos.y += 100.0f;
|
||||
|
||||
@@ -942,7 +942,7 @@ static void kuki_ha_set(e_yd_class* i_this) {
|
||||
mDoMtx_stack_c::YrotM(rot->y);
|
||||
mDoMtx_stack_c::XrotM(rot->x);
|
||||
mDoMtx_stack_c::ZrotM(i << 13);
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (i_this->actor.current.pos.x == 1.0f &&
|
||||
i_this->actor.current.pos.y == 1.0f &&
|
||||
i_this->actor.current.pos.z == 1.0f) {
|
||||
|
||||
@@ -36,7 +36,7 @@ daE_YH_HIO_c::daE_YH_HIO_c() {
|
||||
mAttackFreq = 30;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
void daE_YH_HIO_c::genMessage(JORMContext* ctx) {
|
||||
ctx->genLabel(" デグババ", 0x80000001, 0, NULL, 0xffff, 0xffff, 0x200, 0x18);
|
||||
ctx->genSlider("基本サイズ", &mBasicSize, 0.0f, 5.0f, 0, NULL, 0xffff, 0xffff, 0x200,
|
||||
|
||||
@@ -57,7 +57,7 @@ static u8 data_80807EF8;
|
||||
|
||||
static daE_YK_HIO_c l_HIO;
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
void daE_YK_HIO_c::genMessage(JORMContext* ctx) {
|
||||
ctx->genLabel("闇キース", 0x80000001, 0, NULL, 0xFFFF, 0xFFFF, 512, 24);
|
||||
ctx->genSlider("基本サイズ", &mModelScale, 0.0f, 3.0f, 0, NULL, 0xFFFF, 0xFFFF, 0x512, 24);
|
||||
|
||||
@@ -929,9 +929,7 @@ void daE_YM_c::executeDown() {
|
||||
} else {
|
||||
gravity = 0.0f;
|
||||
}
|
||||
#if DEBUG
|
||||
OSReport("YM executeDown %d %f %f \n", gnd_cross, current.pos.z, mMode);
|
||||
#endif
|
||||
OS_REPORT("YM executeDown %d %f %f \n", gnd_cross, current.pos.z, mMode);
|
||||
field_0x6cf = 0;
|
||||
switch (mMode) {
|
||||
case 0:
|
||||
@@ -3355,10 +3353,8 @@ int daE_YM_c::create() {
|
||||
field_0x6a3 = (current.angle.x & 0xff00) >> 8;
|
||||
|
||||
if (mSwitchBit != 0xFF && dComIfGs_isSwitch(mSwitchBit, fopAcM_GetRoomNo(this))) {
|
||||
#ifdef DEBUG
|
||||
// E_YM won't reset because it's already been defeated.
|
||||
OSReport("E_YM やられ後なので再セットしません\n");
|
||||
#endif
|
||||
OS_REPORT("E_YM やられ後なので再セットしません\n");
|
||||
return cPhs_ERROR_e;
|
||||
}
|
||||
|
||||
|
||||
@@ -224,7 +224,7 @@ int daE_ZH_c::draw() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
mBgc.DrawWall(dComIfG_Bgsp());
|
||||
#endif
|
||||
|
||||
@@ -1069,7 +1069,7 @@ void daE_ZH_c::executeOpenStart() {
|
||||
break;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (ZREG_S(0) == 0) {
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -949,12 +949,10 @@ cPhs__Step daE_ZM_c::create() {
|
||||
attention_info.distances[fopAc_attn_BATTLE_e] = 0;
|
||||
fopAcM_SetGroup(this, 0);
|
||||
|
||||
#ifdef DEBUG
|
||||
if (NREG_S(0) != 0) {
|
||||
fopAcM_SetMin(this, -20000.0f, -10000.0f, -10000.0f);
|
||||
fopAcM_SetMax(this, 20000.0f, 10000.0f, 10000.0f);
|
||||
}
|
||||
#endif
|
||||
|
||||
bitSw = 0xFF;
|
||||
bitSw2 = 0xFF;
|
||||
|
||||
+124
-127
@@ -560,6 +560,8 @@ BOOL daHorse_c::checkEnding() {
|
||||
|
||||
#if DEBUG
|
||||
int l_debugMode;
|
||||
#else
|
||||
#define l_debugMode 0
|
||||
#endif
|
||||
extern int g_horsePosInit;
|
||||
|
||||
@@ -610,9 +612,7 @@ int daHorse_c::create() {
|
||||
m_offRideFlg = &daHorse_c::offRideFlgSubstance;
|
||||
|
||||
if (daAlink_getAlinkActorClass()->checkHorseStart() || checkStateFlg0(FLG0_UNK_8000) ||
|
||||
#if DEBUG
|
||||
g_horsePosInit ||
|
||||
#endif
|
||||
(DEBUG && g_horsePosInit) ||
|
||||
strcmp(dComIfGs_getHorseRestartStageName(), "") == 0
|
||||
/* dSv_event_flag_c::M_002 - Cutscene - [cutscene: 2] Met with Ilia (brings horse to
|
||||
spring) */
|
||||
@@ -4301,6 +4301,7 @@ int daHorse_c::execute() {
|
||||
l_debugMode = 1;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (l_debugMode) {
|
||||
f32 f31 = 50.0f;
|
||||
@@ -4318,140 +4319,136 @@ int daHorse_c::execute() {
|
||||
setMatrix();
|
||||
m_model->calc();
|
||||
setBodyPart();
|
||||
} else { // unsure of the best way to handle this jump
|
||||
#endif
|
||||
|
||||
animePlay();
|
||||
checkDemoAction();
|
||||
|
||||
(this->*m_proc)();
|
||||
|
||||
cXyz old_pos(current.pos);
|
||||
f32 old_speedF = speedF;
|
||||
speedF *= cM_scos(shape_angle.x);
|
||||
|
||||
if (m_procID == PROC_JUMP_e) {
|
||||
fopAcM_posMoveF(this, NULL);
|
||||
} else {
|
||||
fopAcM_posMoveF(this, m_cc_stts.GetCCMoveP());
|
||||
if (m_cc_stts.GetCCMoveP()->abs() > 0.0001f) {
|
||||
s16 old_shape_y = shape_angle.y;
|
||||
s16 old_angle_y = current.angle.y;
|
||||
animePlay();
|
||||
checkDemoAction();
|
||||
|
||||
for (int i = 0; i < 8; i++) {
|
||||
if (checkHorseNoMove(1) == 2) {
|
||||
current.pos -= *m_cc_stts.GetCCMoveP();
|
||||
break;
|
||||
(this->*m_proc)();
|
||||
|
||||
cXyz old_pos(current.pos);
|
||||
f32 old_speedF = speedF;
|
||||
speedF *= cM_scos(shape_angle.x);
|
||||
|
||||
if (m_procID == PROC_JUMP_e) {
|
||||
fopAcM_posMoveF(this, NULL);
|
||||
} else {
|
||||
fopAcM_posMoveF(this, m_cc_stts.GetCCMoveP());
|
||||
if (m_cc_stts.GetCCMoveP()->abs() > 0.0001f) {
|
||||
s16 old_shape_y = shape_angle.y;
|
||||
s16 old_angle_y = current.angle.y;
|
||||
|
||||
for (int i = 0; i < 8; i++) {
|
||||
if (checkHorseNoMove(1) == 2) {
|
||||
current.pos -= *m_cc_stts.GetCCMoveP();
|
||||
break;
|
||||
}
|
||||
|
||||
shape_angle.y += (s16)0x2000;
|
||||
current.angle.y = shape_angle.y;
|
||||
}
|
||||
|
||||
shape_angle.y += (s16)0x2000;
|
||||
current.angle.y = shape_angle.y;
|
||||
}
|
||||
|
||||
shape_angle.y = old_shape_y;
|
||||
current.angle.y = old_angle_y;
|
||||
}
|
||||
}
|
||||
|
||||
speedF = old_speedF;
|
||||
|
||||
m_cc_stts.ClrCcMove();
|
||||
f32 old_speed_y = speed.y;
|
||||
|
||||
bgCheck();
|
||||
m_acch.CrrPos(dComIfG_Bgsp());
|
||||
|
||||
if (checkStateFlg0(FLG0_UNK_4000)) {
|
||||
autoGroundHit();
|
||||
} else {
|
||||
current.pos.y = old_pos.y;
|
||||
speed.y = 0.0f;
|
||||
}
|
||||
|
||||
if (m_procID == PROC_TOOL_DEMO_e) {
|
||||
J3DTransformInfo sp70;
|
||||
m_mtxcalc->getAnm(0)->getTransform(0, &sp70);
|
||||
|
||||
mDoMtx_stack_c::transS(old_pos);
|
||||
mDoMtx_stack_c::YrotM(shape_angle.y);
|
||||
|
||||
Vec sp54 = {0.0f, 0.0f, 0.0f};
|
||||
sp54.x = sp70.mTranslate.x;
|
||||
f32 f28 = sp70.mTranslate.z;
|
||||
sp54.z = f28;
|
||||
|
||||
mDoMtx_stack_c::multVec(&sp54, ¤t.pos);
|
||||
if (field_0x1730 != 0 && -G_CM3D_F_INF != m_acch.GetGroundH()) {
|
||||
current.pos.y = m_acch.GetGroundH();
|
||||
}
|
||||
} else if (m_procID == PROC_JUMP_e) {
|
||||
speed.y = old_speed_y;
|
||||
}
|
||||
|
||||
if (checkStateFlg0(FLG0_UNK_1) && m_acch.ChkGroundHit() && checkStateFlg0(FLG0_UNK_2)) {
|
||||
if (!checkStateFlg0(FLG0_UNK_1000)) {
|
||||
dComIfGp_getVibration().StartQuake(VIBMODE_S_DOKUTT, 1, cXyz(0.0f, 1.0f, 0.0f));
|
||||
onStateFlg0(FLG0_UNK_1000);
|
||||
}
|
||||
} else if (checkStateFlg0(FLG0_UNK_1000)) {
|
||||
dComIfGp_getVibration().StopQuake(0x1F);
|
||||
offStateFlg0(FLG0_UNK_1000);
|
||||
}
|
||||
|
||||
setRoomInfo(0);
|
||||
setMatrix();
|
||||
footBgCheck();
|
||||
setTailAngle();
|
||||
|
||||
m_model->calc();
|
||||
setBodyPart();
|
||||
|
||||
if (m_procID == PROC_TOOL_DEMO_e) {
|
||||
cXyz sp48;
|
||||
mDoMtx_multVec(m_model->getAnmMtx(0), &cXyz::BaseX, &sp48);
|
||||
field_0x170e = cM_atan2s(-sp48.x, -sp48.z);
|
||||
} else {
|
||||
field_0x170e = shape_angle.y;
|
||||
}
|
||||
|
||||
cXyz sp3C;
|
||||
cXyz sp30;
|
||||
mDoMtx_multVecZero(m_model->getAnmMtx(0xB), &sp3C);
|
||||
mDoMtx_multVecZero(m_model->getAnmMtx(0x14), &sp30);
|
||||
sp30 -= sp3C;
|
||||
|
||||
field_0x1712 = sp30.atan2sX_Z() - field_0x170e;
|
||||
if (field_0x1712 > 0x2000) {
|
||||
field_0x1712 = 0x2000;
|
||||
} else if (field_0x1712 < -0x2000) {
|
||||
field_0x1712 = -0x2000;
|
||||
}
|
||||
|
||||
if (checkResetStateFlg0(RFLG0_UNK_1)) {
|
||||
mDoMtx_stack_c::transS(m_bodyEyePos.x, m_bodyEyePos.y, m_bodyEyePos.z);
|
||||
mDoMtx_stack_c::YrotM(field_0x170e - field_0x1710);
|
||||
mDoMtx_stack_c::transM(-field_0x17b8.x, -field_0x17b8.y, -field_0x17b8.z);
|
||||
|
||||
daHorseRein_c* rein_p = m_rein;
|
||||
cXyz* var_r26;
|
||||
for (int i = 0; i < 3; i++, rein_p++) {
|
||||
var_r26 = rein_p->field_0x0[0];
|
||||
for (int j = 0; j < rein_p->field_0x8[1]; j++, var_r26++) {
|
||||
mDoMtx_stack_c::multVec(var_r26, var_r26);
|
||||
shape_angle.y = old_shape_y;
|
||||
current.angle.y = old_angle_y;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
field_0x17b8 = m_bodyEyePos;
|
||||
speedF = old_speedF;
|
||||
|
||||
m_sound.framework(m_poly_sound, m_reverb);
|
||||
m_cc_stts.ClrCcMove();
|
||||
f32 old_speed_y = speed.y;
|
||||
|
||||
if (field_0x1144 != NULL) {
|
||||
m_sound.updateAnime(field_0x1144->getFrame(), field_0x1144->getRate());
|
||||
bgCheck();
|
||||
m_acch.CrrPos(dComIfG_Bgsp());
|
||||
|
||||
if (checkStateFlg0(FLG0_UNK_4000)) {
|
||||
autoGroundHit();
|
||||
} else {
|
||||
current.pos.y = old_pos.y;
|
||||
speed.y = 0.0f;
|
||||
}
|
||||
|
||||
if (m_procID == PROC_TOOL_DEMO_e) {
|
||||
J3DTransformInfo sp70;
|
||||
m_mtxcalc->getAnm(0)->getTransform(0, &sp70);
|
||||
|
||||
mDoMtx_stack_c::transS(old_pos);
|
||||
mDoMtx_stack_c::YrotM(shape_angle.y);
|
||||
|
||||
Vec sp54 = {0.0f, 0.0f, 0.0f};
|
||||
sp54.x = sp70.mTranslate.x;
|
||||
f32 f28 = sp70.mTranslate.z;
|
||||
sp54.z = f28;
|
||||
|
||||
mDoMtx_stack_c::multVec(&sp54, ¤t.pos);
|
||||
if (field_0x1730 != 0 && -G_CM3D_F_INF != m_acch.GetGroundH()) {
|
||||
current.pos.y = m_acch.GetGroundH();
|
||||
}
|
||||
} else if (m_procID == PROC_JUMP_e) {
|
||||
speed.y = old_speed_y;
|
||||
}
|
||||
|
||||
if (checkStateFlg0(FLG0_UNK_1) && m_acch.ChkGroundHit() && checkStateFlg0(FLG0_UNK_2)) {
|
||||
if (!checkStateFlg0(FLG0_UNK_1000)) {
|
||||
dComIfGp_getVibration().StartQuake(VIBMODE_S_DOKUTT, 1, cXyz(0.0f, 1.0f, 0.0f));
|
||||
onStateFlg0(FLG0_UNK_1000);
|
||||
}
|
||||
} else if (checkStateFlg0(FLG0_UNK_1000)) {
|
||||
dComIfGp_getVibration().StopQuake(0x1F);
|
||||
offStateFlg0(FLG0_UNK_1000);
|
||||
}
|
||||
|
||||
setRoomInfo(0);
|
||||
setMatrix();
|
||||
footBgCheck();
|
||||
setTailAngle();
|
||||
|
||||
m_model->calc();
|
||||
setBodyPart();
|
||||
|
||||
if (m_procID == PROC_TOOL_DEMO_e) {
|
||||
cXyz sp48;
|
||||
mDoMtx_multVec(m_model->getAnmMtx(0), &cXyz::BaseX, &sp48);
|
||||
field_0x170e = cM_atan2s(-sp48.x, -sp48.z);
|
||||
} else {
|
||||
field_0x170e = shape_angle.y;
|
||||
}
|
||||
|
||||
cXyz sp3C;
|
||||
cXyz sp30;
|
||||
mDoMtx_multVecZero(m_model->getAnmMtx(0xB), &sp3C);
|
||||
mDoMtx_multVecZero(m_model->getAnmMtx(0x14), &sp30);
|
||||
sp30 -= sp3C;
|
||||
|
||||
field_0x1712 = sp30.atan2sX_Z() - field_0x170e;
|
||||
if (field_0x1712 > 0x2000) {
|
||||
field_0x1712 = 0x2000;
|
||||
} else if (field_0x1712 < -0x2000) {
|
||||
field_0x1712 = -0x2000;
|
||||
}
|
||||
|
||||
if (checkResetStateFlg0(RFLG0_UNK_1)) {
|
||||
mDoMtx_stack_c::transS(m_bodyEyePos.x, m_bodyEyePos.y, m_bodyEyePos.z);
|
||||
mDoMtx_stack_c::YrotM(field_0x170e - field_0x1710);
|
||||
mDoMtx_stack_c::transM(-field_0x17b8.x, -field_0x17b8.y, -field_0x17b8.z);
|
||||
|
||||
daHorseRein_c* rein_p = m_rein;
|
||||
cXyz* var_r26;
|
||||
for (int i = 0; i < 3; i++, rein_p++) {
|
||||
var_r26 = rein_p->field_0x0[0];
|
||||
for (int j = 0; j < rein_p->field_0x8[1]; j++, var_r26++) {
|
||||
mDoMtx_stack_c::multVec(var_r26, var_r26);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
field_0x17b8 = m_bodyEyePos;
|
||||
|
||||
m_sound.framework(m_poly_sound, m_reverb);
|
||||
|
||||
if (field_0x1144 != NULL) {
|
||||
m_sound.updateAnime(field_0x1144->getFrame(), field_0x1144->getRate());
|
||||
}
|
||||
}
|
||||
#if DEBUG
|
||||
}
|
||||
#endif
|
||||
setEffect();
|
||||
setCollision();
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ static int daKytag14_Execute(kytag14_class* i_this) {
|
||||
|
||||
if (event1_set == true && event2_unset == true && switch1_set == true && switch2_unset == true)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (!g_kankyoHIO.navy.display_save_location) {
|
||||
dDbVw_Report(20, 16, "TAG SavMem STAGE[%s] Room[%d] Lp[%d]", dComIfGp_getStartStageName(), i_this->mSaveRoomNo, i_this->mSavePoint);
|
||||
if (i_this->mSaveRoomNo == -1) {
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include "f_op/f_op_kankyo_mng.h"
|
||||
#include "m_Do/m_Do_lib.h"
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
void daNpcT_cmnListenPropertyEvent(char* param_0, int* param_1, daNpcT_HIOParam* param_2) {
|
||||
sprintf(¶m_0[*param_1], "%.3ff,\t// 注目オフセット\n", param_2->attention_offset);
|
||||
*param_1 = strlen(param_0);
|
||||
|
||||
@@ -754,7 +754,7 @@ int daBaseNpc_moveBgActor_c::MoveBGCreate(char const* i_arcName, int i_dzbId, Mo
|
||||
return cPhs_ERROR_e;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (mpBgw != NULL && mpBgw->ChkUsed()) {
|
||||
BOOL isConnect = mDoCPd_c::isConnect(PAD_3);
|
||||
if (isConnect) {
|
||||
|
||||
@@ -447,7 +447,7 @@ void daNpcF_Lookat_c::initCalc(fopAc_ac_c* i_actor, Mtx i_baseTransformMtx, cXyz
|
||||
param_3[i].setall(0);
|
||||
param_3[i].x = -cM_atan2s(local_90.y, local_90.absXZ());
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (i_debug) {
|
||||
f32 var_f31 = fabsf(cM_ssin(param_3[i].x));
|
||||
OS_REPORT(">>>>>>>%d: sin(%d):%f\n", i, abs(param_3[i].x), var_f31);
|
||||
@@ -1905,9 +1905,9 @@ BOOL daNpcF_chkDoBtnEqSpeak(fopAc_ac_c* i_actor_p) {
|
||||
if (dComIfGp_getAttention()->LockonTarget(i) == i_actor_p &&
|
||||
dComIfGp_getAttention()->getActionBtnB() &&
|
||||
(dComIfGp_getAttention()->getActionBtnB()->mType == fopAc_attn_TALK_e
|
||||
#if DEBUG
|
||||
#if !PLATFORM_GCN
|
||||
|| dComIfGp_getAttention()->getActionBtnB()->mType == fopAc_attn_UNK_4
|
||||
#endif
|
||||
#endif
|
||||
))
|
||||
{
|
||||
ret = TRUE;
|
||||
|
||||
@@ -423,7 +423,7 @@ int daNpc_Aru_c::Draw() {
|
||||
}
|
||||
|
||||
draw(
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
chkAction(&daNpc_Aru_c::test),
|
||||
#else
|
||||
FALSE,
|
||||
@@ -2018,11 +2018,8 @@ int daNpc_Aru_c::talk(void* param_1) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
int daNpc_Aru_c::test(void* param_1) {
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
static int daNpc_Aru_Create(void* a_this) {
|
||||
return static_cast<daNpc_Aru_c*>(a_this)->create();
|
||||
|
||||
@@ -1824,7 +1824,6 @@ int daNpc_Bans_c::shop(void* param_1) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
int daNpc_Bans_c::test(void* param_1) {
|
||||
int rv = 0;
|
||||
|
||||
@@ -1848,7 +1847,6 @@ int daNpc_Bans_c::test(void* param_1) {
|
||||
|
||||
return rv;
|
||||
}
|
||||
#endif
|
||||
|
||||
static int daNpc_Bans_Create(void* i_this) {
|
||||
return static_cast<daNpc_Bans_c*>(i_this)->create();
|
||||
|
||||
@@ -279,7 +279,7 @@ enum Event {
|
||||
/* 0xC */ EVENT_CONVERSATION_ABOUT_ZORA,
|
||||
};
|
||||
|
||||
#ifndef DEBUG
|
||||
#if !DEBUG
|
||||
#endif
|
||||
|
||||
|
||||
@@ -538,7 +538,7 @@ daNpc_Besu_c::~daNpc_Besu_c() {
|
||||
mpCupModelMorf->stopZelAnime();
|
||||
}
|
||||
|
||||
// #ifdef DEBUG
|
||||
// #if DEBUG
|
||||
// if (field_0xe40 != NULL) {
|
||||
// field_0xe40->removeHIO();
|
||||
// }
|
||||
@@ -631,7 +631,7 @@ int daNpc_Besu_c::create() {
|
||||
fopAcM_setCullSizeBox(this, -200.0f, -100.0f, -200.0f, 200.0f, 300.0f, 200.0f);
|
||||
mSound.init(¤t.pos, &eyePos, 3, 1);
|
||||
|
||||
// #ifdef DEBUG
|
||||
// #if DEBUG
|
||||
// field_0xe40 = &l_HIO;
|
||||
// // "Beth":
|
||||
// field_0xe40->entryHIO("ベス");
|
||||
@@ -1248,14 +1248,14 @@ void daNpc_Besu_c::action() {
|
||||
}
|
||||
|
||||
if (actor_p != NULL && mType != 5
|
||||
#ifndef DEBUG
|
||||
#if !DEBUG
|
||||
&& !chkNurse()
|
||||
#endif
|
||||
) {
|
||||
mStagger.setParam(this, actor_p, mCurAngle.y);
|
||||
setDamage(0, 0xC, 0x12);
|
||||
// FIXME: Fakematch
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
mStagger.setPower(0.0f);
|
||||
#else
|
||||
for (int i = 0; i < 2; i++) {
|
||||
@@ -1268,7 +1268,7 @@ void daNpc_Besu_c::action() {
|
||||
|
||||
if (mStagger.checkRebirth()) {
|
||||
// FIXME: Fakematch
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
mStagger.initialize();
|
||||
#else
|
||||
for (int i = 0; i < 2; i++) {
|
||||
|
||||
@@ -2700,7 +2700,7 @@ cPhs__Step daNpcChat_c::Create() {
|
||||
mSound.init(¤t.pos, &eyePos, 3, 1);
|
||||
mSound.setMdlType(mType, false, mTwilight & 0xFF);
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
// mHIO = l_HIO;
|
||||
mHIO->entryHIO("多人数会話NPC");
|
||||
#endif
|
||||
@@ -3065,7 +3065,7 @@ void daNpcChat_c::setParam() {
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
scale.set(daNpcChat_Param_c::m.common.scale, daNpcChat_Param_c::m.common.scale, daNpcChat_Param_c::m.common.scale);
|
||||
mAcchCir.SetWallR(daNpcChat_Param_c::m.common.width);
|
||||
mAcchCir.SetWallH(daNpcChat_Param_c::m.common.knee_length);
|
||||
|
||||
@@ -284,7 +284,7 @@ int daNpcChin_c::Create() {
|
||||
mpHIO = &l_HIO;
|
||||
// "W Hook Shot Shop"
|
||||
mpHIO->entryHIO("Wフックショット屋");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
mAcchCir.SetWall(mpHIO->m.common.width, mpHIO->m.common.knee_length);
|
||||
|
||||
|
||||
@@ -11,6 +11,12 @@
|
||||
#include "d/actor/d_a_npc_henna.h"
|
||||
#include "Z2AudioLib/Z2Instances.h"
|
||||
|
||||
#if DEBUG
|
||||
#define NPC_DF_HEAP_SIZE 0x4B000
|
||||
#else
|
||||
#define NPC_DF_HEAP_SIZE 0x3B90
|
||||
#endif
|
||||
|
||||
static int daNpc_Df_Draw(npc_df_class* i_this) {
|
||||
fopAc_ac_c* actor = (fopAc_ac_c*)&i_this->actor;
|
||||
df_s* df_p = i_this->mDfs;
|
||||
@@ -369,13 +375,7 @@ static cPhs__Step daNpc_Df_Create(fopAc_ac_c* i_this) {
|
||||
|
||||
OS_REPORT("NPC_DF//////////////NPC_DF SET 1 !!\n");
|
||||
|
||||
if (
|
||||
#if DEBUG
|
||||
!fopAcM_entrySolidHeap(i_this, useHeapInit, 0x4B000)
|
||||
#else
|
||||
!fopAcM_entrySolidHeap(i_this, useHeapInit, 0x3B90)
|
||||
#endif
|
||||
) {
|
||||
if (!fopAcM_entrySolidHeap(i_this, useHeapInit, NPC_DF_HEAP_SIZE)) {
|
||||
OS_REPORT("//////////////NPC_DF SET NON !!\n");
|
||||
return cPhs_ERROR_e;
|
||||
}
|
||||
|
||||
@@ -274,11 +274,14 @@ int daNpc_Doc_c::Draw() {
|
||||
mdlData_p->getMaterialNodePointer(getEyeballMaterialNo())->setMaterialAnm(mpMatAnm[0]);
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
return draw(chkAction(&daNpc_Doc_c::test), FALSE, mRealShadowSize, NULL, 100.0f, FALSE, FALSE, FALSE);
|
||||
#else
|
||||
return draw(FALSE, FALSE, mRealShadowSize, NULL, 100.0f, FALSE, FALSE, FALSE);
|
||||
#endif
|
||||
return draw(
|
||||
#if DEBUG
|
||||
chkAction(&daNpc_Doc_c::test),
|
||||
#else
|
||||
FALSE,
|
||||
#endif
|
||||
FALSE, mRealShadowSize, NULL, 100.0f, FALSE, FALSE, FALSE
|
||||
);
|
||||
}
|
||||
|
||||
int daNpc_Doc_c::createHeapCallBack(fopAc_ac_c* i_this) {
|
||||
@@ -827,6 +830,10 @@ int daNpc_Doc_c::talk(void* param_0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int daNpc_Doc_c::test(void* i_this) {
|
||||
// DEBUG NONMATCHING
|
||||
}
|
||||
|
||||
static int daNpc_Doc_Create(void* i_this) {
|
||||
return ((daNpc_Doc_c*)i_this)->create();
|
||||
}
|
||||
|
||||
@@ -834,7 +834,7 @@ void daNpcDoorBoy_c::setAttnPos() {
|
||||
sp28.y = current.pos.y;
|
||||
|
||||
field_0xc98.SetC(sp28);
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
field_0xc98.SetH(daNpcDoorBoy_Param_c::m.common.height);
|
||||
field_0xc98.SetR(daNpcDoorBoy_Param_c::m.common.width);
|
||||
#endif
|
||||
|
||||
@@ -1239,7 +1239,6 @@ int daNpc_Fairy_c::talk(int param_1) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
int daNpc_Fairy_c::test(int param_1) {
|
||||
int rv = 0;
|
||||
|
||||
@@ -1263,7 +1262,6 @@ int daNpc_Fairy_c::test(int param_1) {
|
||||
|
||||
return rv;
|
||||
}
|
||||
#endif
|
||||
|
||||
void daNpc_Fairy_c::AppearDemoCall() {
|
||||
if (mType == TYPE_50F) {
|
||||
|
||||
@@ -147,7 +147,7 @@ void daNpcFgd_c::checkGroundHeight() {
|
||||
}
|
||||
|
||||
void daNpcFgd_c::setCollision() {
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
mCyl.SetR(Cd2_HIO_cylR(m_type));
|
||||
mCyl.SetH(Cd2_HIO_cylH(m_type));
|
||||
#endif
|
||||
|
||||
@@ -320,7 +320,7 @@ int daNpc_grMC_c::Execute() {
|
||||
|
||||
int daNpc_grMC_c::Draw() {
|
||||
return draw(
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
chkAction(&daNpc_grMC_c::test),
|
||||
#else
|
||||
FALSE,
|
||||
@@ -737,7 +737,6 @@ int daNpc_grMC_c::shop(void* param_1) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
int daNpc_grMC_c::test(void* param_1) {
|
||||
int rv = 0;
|
||||
|
||||
@@ -749,8 +748,8 @@ int daNpc_grMC_c::test(void* param_1) {
|
||||
mMode = 2;
|
||||
// fallthrough
|
||||
case 2:
|
||||
mFaceMotionSeqMngr.setNo(mHIO->param.common.face_expression, -1.0f, FALSE, 0);
|
||||
mMotionSeqMngr.setNo(mHIO->param.common.motion, -1.0f, FALSE, 0);
|
||||
mFaceMotionSeqMngr.setNo(mHIO->m.common.face_expression, -1.0f, FALSE, 0);
|
||||
mMotionSeqMngr.setNo(mHIO->m.common.motion, -1.0f, FALSE, 0);
|
||||
mJntAnm.lookNone(0);
|
||||
attention_info.flags = 0;
|
||||
break;
|
||||
@@ -761,7 +760,6 @@ int daNpc_grMC_c::test(void* param_1) {
|
||||
|
||||
return rv;
|
||||
}
|
||||
#endif
|
||||
|
||||
static int daNpc_grMC_Create(void* a_this) {
|
||||
return static_cast<daNpc_grMC_c*>(a_this)->create();
|
||||
|
||||
@@ -215,7 +215,7 @@ daNpc_grR_c::~daNpc_grR_c() {
|
||||
mAnm_p->stopZelAnime();
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (mHIO != NULL) {
|
||||
mHIO->removeHIO();
|
||||
}
|
||||
|
||||
@@ -335,11 +335,7 @@ int daNpc_grS_c::ctrlJointCallBack(J3DJoint* i_joint, int param_1) {
|
||||
|
||||
void daNpc_grS_c::setParam() {
|
||||
actionFunc oldAction = mpNextActionFn;
|
||||
#if DEBUG
|
||||
u32 flags = 0x42;
|
||||
#else
|
||||
u32 flags = 0xa;
|
||||
#endif
|
||||
u32 flags = fopAc_AttnFlag_TALK_e | fopAc_AttnFlag_SPEAK_e;
|
||||
|
||||
selectAction();
|
||||
|
||||
|
||||
@@ -528,7 +528,7 @@ static int daNpcGuard_Execute(void* i_this) {
|
||||
}
|
||||
|
||||
void daNpcGuard_c::setCollision() {
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
mCyl.SetR(Cd2_HIO_cylR(m_type));
|
||||
mCyl.SetH(Cd2_HIO_cylH(m_type));
|
||||
#endif
|
||||
|
||||
@@ -396,11 +396,14 @@ int daNpc_Hoz_c::Draw() {
|
||||
modelData->getMaterialNodePointer(getEyeballMaterialNo())->setMaterialAnm(mpMatAnm[0]);
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
return draw(chkAction(&daNpc_Hoz_c::test), FALSE, daNpc_Hoz_Param_c::m.common.real_shadow_size, NULL, 100.0f, FALSE, FALSE, FALSE);
|
||||
#else
|
||||
return draw(FALSE, FALSE, daNpc_Hoz_Param_c::m.common.real_shadow_size, NULL, 100.0f, FALSE, FALSE, FALSE);
|
||||
#endif
|
||||
return draw(
|
||||
#if DEBUG
|
||||
chkAction(&daNpc_Hoz_c::test),
|
||||
#else
|
||||
FALSE,
|
||||
#endif
|
||||
FALSE, daNpc_Hoz_Param_c::m.common.real_shadow_size, NULL, 100.0f, FALSE, FALSE, FALSE
|
||||
);
|
||||
}
|
||||
|
||||
int daNpc_Hoz_c::createHeapCallBack(fopAc_ac_c* actor) {
|
||||
@@ -824,6 +827,10 @@ BOOL daNpc_Hoz_c::drawDbgInfo() {
|
||||
return false;
|
||||
}
|
||||
|
||||
int daNpc_Hoz_c::test(void* i_this) {
|
||||
// DEBUG NONMATCHING
|
||||
}
|
||||
|
||||
int daNpc_Hoz_c::selectAction() {
|
||||
field_0xfac = NULL;
|
||||
|
||||
|
||||
@@ -890,7 +890,7 @@ void daNpcKasiHana_c::setAttnPos() {
|
||||
mDoMtx_stack_c::multVecZero(&sp28);
|
||||
sp28.y = current.pos.y;
|
||||
mCyl.SetC(sp28);
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
mCyl.SetH(mHIO->m.common.height);
|
||||
mCyl.SetR(mHIO->m.common.width);
|
||||
#endif
|
||||
|
||||
@@ -417,7 +417,7 @@ void daNpcKasiKyu_c::setAttnPos() {
|
||||
mDoMtx_stack_c::multVecZero(&sp28);
|
||||
sp28.y = current.pos.y;
|
||||
mCyl.SetC(sp28);
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
mCyl.SetH(daNpcKasiKyu_Param_c::m.common.height);
|
||||
mCyl.SetR(daNpcKasiKyu_Param_c::m.common.width);
|
||||
#endif
|
||||
|
||||
@@ -417,7 +417,7 @@ void daNpcKasiMich_c::setAttnPos() {
|
||||
mDoMtx_stack_c::multVecZero(&sp28);
|
||||
sp28.y = current.pos.y;
|
||||
mCyl.SetC(sp28);
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
mCyl.SetH(daNpcKasiMich_Param_c::m.common.height);
|
||||
mCyl.SetR(daNpcKasiMich_Param_c::m.common.width);
|
||||
#endif
|
||||
|
||||
@@ -4980,7 +4980,7 @@ int daNpc_Kn_c::setSlipPrtcl() {
|
||||
mDoMtx_stack_c::multVecZero(&mParticleMngr[0].mPos);
|
||||
mParticleMngr[0].mPos.y -= 20.0f;
|
||||
mParticleMngr[0].mAngle = current.angle;
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
mParticleMngr[0].mAngle.y -= (s16) 0x8000;
|
||||
#else
|
||||
mParticleMngr[0].mAngle.y -= 0x8000;
|
||||
@@ -4991,7 +4991,7 @@ int daNpc_Kn_c::setSlipPrtcl() {
|
||||
mDoMtx_stack_c::multVecZero(&mParticleMngr[1].mPos);
|
||||
mParticleMngr[1].mPos.y -= 20.0f;
|
||||
mParticleMngr[1].mAngle = current.angle;
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
mParticleMngr[1].mAngle.y -= (s16) 0x8000;
|
||||
#else
|
||||
mParticleMngr[1].mAngle.y -= 0x8000;
|
||||
|
||||
@@ -1090,7 +1090,7 @@ void daNpc_Kolin_c::changeBck(int* param_1, int* param_2) {
|
||||
int daNpc_Kolin_c::selectAction() {
|
||||
mNextAction = NULL;
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (daNpc_Kolin_Param_c::m.common.debug_mode_ON) {
|
||||
mNextAction = &daNpc_Kolin_c::test;
|
||||
return 1;
|
||||
|
||||
@@ -590,7 +590,7 @@ int daNpc_Kolinb_c::drawDbgInfo() {
|
||||
int daNpc_Kolinb_c::selectAction() {
|
||||
mNextAction = NULL;
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (daNpc_Kolinb_Param_c::m.common.debug_mode_ON) {
|
||||
mNextAction = &daNpc_Kolinb_c::test;
|
||||
return 1;
|
||||
|
||||
@@ -608,7 +608,7 @@ void daNpc_Len_c::action() {
|
||||
|
||||
if (mStagger.checkRebirth()) {
|
||||
// FIXME: Fakematch - same issue in npc_besu
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
mStagger.initialize();
|
||||
#else
|
||||
for (int i = 0; i < 2; i++) {
|
||||
|
||||
@@ -1847,7 +1847,7 @@ void daNpcMoiR_c::setParam() {
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
scale.set(mpHIO->m.common.scale, mpHIO->m.common.scale, mpHIO->m.common.scale);
|
||||
mAcchCir.SetWallR(mpHIO->m.common.width);
|
||||
mAcchCir.SetWallH(mpHIO->m.common.knee_length);
|
||||
|
||||
@@ -629,7 +629,7 @@ int daNpc_Pachi_Besu_c::Draw() {
|
||||
}
|
||||
|
||||
return draw(
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
chkAction(&daNpc_Pachi_Besu_c::test),
|
||||
#else
|
||||
FALSE,
|
||||
@@ -1088,11 +1088,9 @@ BOOL daNpc_Pachi_Besu_c::talk(void* param_1) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
BOOL daNpc_Pachi_Besu_c::test(void* param_1) {
|
||||
// DEBUG NONMATCHING
|
||||
}
|
||||
#endif
|
||||
|
||||
BOOL daNpc_Pachi_Besu_c::_turn_to_link(s16 param_1) {
|
||||
cXyz pos(*fopAcM_GetPosition_p(daPy_getPlayerActorClass()));
|
||||
|
||||
@@ -667,7 +667,7 @@ int daNpc_Pachi_Maro_c::Draw() {
|
||||
}
|
||||
|
||||
return draw(
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
chkAction(&daNpc_Pachi_Maro_c::test),
|
||||
#else
|
||||
FALSE,
|
||||
|
||||
@@ -917,7 +917,7 @@ int daNpc_Pachi_Taro_c::Draw() {
|
||||
}
|
||||
|
||||
return draw(
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
chkAction(&daNpc_Pachi_Taro_c::test),
|
||||
#else
|
||||
FALSE,
|
||||
|
||||
@@ -311,10 +311,10 @@ int daNpc_Raca_c::Draw() {
|
||||
}
|
||||
|
||||
draw(
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
chkAction(mAction),
|
||||
#else
|
||||
0,
|
||||
FALSE,
|
||||
#endif
|
||||
FALSE, mRealShadowSize, NULL, 100.0f, FALSE, FALSE, FALSE
|
||||
);
|
||||
|
||||
@@ -312,7 +312,7 @@ int daNpc_Saru_c::create() {
|
||||
fopAcM_SetMtx(this, mpMorf[0]->getModel()->getBaseTRMtx());
|
||||
fopAcM_setCullSizeBox(this, -200.0f, -100.0f, -200.0f, 200.0f, 300.0f, 200.0f);
|
||||
mSound.init(¤t.pos, &eyePos, 3, 1);
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
field_0xe90->entryHIO("サル"); // Monkey
|
||||
#endif
|
||||
reset();
|
||||
@@ -552,7 +552,7 @@ void daNpc_Saru_c::setParam() {
|
||||
}
|
||||
|
||||
void daNpc_Saru_c::setAfterTalkMotion() {
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
mFaceMotionSeqMngr.getNo();
|
||||
#endif
|
||||
mFaceMotionSeqMngr.setNo(FACE_NONE, -1.0f, 0, 0);
|
||||
|
||||
@@ -61,7 +61,7 @@ daNpc_seiC_c::~daNpc_seiC_c() {
|
||||
mpMorf[0]->stopZelAnime();
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (field_0xe40 != NULL) {
|
||||
field_0xe40->removeHIO();
|
||||
}
|
||||
@@ -137,7 +137,7 @@ int daNpc_seiC_c::create() {
|
||||
fopAcM_SetMtx(this, mpMorf[0]->getModel()->getBaseTRMtx());
|
||||
mSound.init(¤t.pos, &eyePos, 3, 1);
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
//field_0xe40->field_0x8 = &l_HIO;
|
||||
field_0xe40->entryHIO("光の精霊c"); // Spirit of Light c
|
||||
#endif
|
||||
|
||||
@@ -61,7 +61,7 @@ daNpc_seiD_c::~daNpc_seiD_c() {
|
||||
mpMorf[0]->stopZelAnime();
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (field_0xe40 != NULL) {
|
||||
field_0xe40->removeHIO();
|
||||
}
|
||||
@@ -137,7 +137,7 @@ int daNpc_seiD_c::create() {
|
||||
fopAcM_SetMtx(this, mpMorf[0]->getModel()->getBaseTRMtx());
|
||||
mSound.init(¤t.pos, &eyePos, 3, 1);
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
//field_0xe40->field_0x8 = &l_HIO;
|
||||
field_0xe40->entryHIO("光の精霊d"); // Spirit of Light d
|
||||
#endif
|
||||
|
||||
@@ -245,7 +245,7 @@ daNpc_Taro_c::~daNpc_Taro_c() {
|
||||
mpMorf[0]->stopZelAnime();
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (field_0xe40 != NULL) {
|
||||
field_0xe40->removeHIO();
|
||||
}
|
||||
@@ -300,7 +300,7 @@ int daNpc_Taro_c::create() {
|
||||
mSound.init(¤t.pos, &eyePos, 3, 1);
|
||||
field_0x9c0.init(&mAcch, 0.0f, 0.0f);
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
// I'm unsure exactly how we're supposed to set + use the param ptr in the debug build...
|
||||
// field_0xe40 = &l_HIO;
|
||||
// field_0xe40->entryHIO("タロ");
|
||||
@@ -894,7 +894,7 @@ void daNpc_Taro_c::action() {
|
||||
hitActor, mCurAngle.y);
|
||||
setDamage(0, 17, 33);
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
mStagger.setPower(0.0f);
|
||||
#else
|
||||
for (int i = 0; i < 2; i++) {
|
||||
@@ -906,7 +906,7 @@ void daNpc_Taro_c::action() {
|
||||
mJntAnm.lookNone(1);
|
||||
}
|
||||
if (mStagger.checkRebirth()) {
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
mStagger.initialize();
|
||||
#else
|
||||
for (int i = 0; i < 2; i++) {
|
||||
|
||||
@@ -1099,7 +1099,7 @@ static cPhs__Step daNpc_Tkj2_Create(fopAc_ac_c* a_this) {
|
||||
l_HIO.field_0x4 = -1;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
fopAcM_OnStatus(a_this, 0);
|
||||
#endif
|
||||
|
||||
|
||||
@@ -2950,7 +2950,7 @@ void daNpcTks_c::setAttnPos() {
|
||||
if (!fopAcM_checkCarryNow(this)) {
|
||||
if (!field_0x138a) {
|
||||
mCyl.SetC(current.pos);
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
mCyl.SetH(daNpcTks_Param_c::m.common.height);
|
||||
mCyl.SetR(daNpcTks_Param_c::m.common.width);
|
||||
#endif
|
||||
|
||||
@@ -418,9 +418,10 @@ int daNpc_Toby_c::Draw() {
|
||||
#if DEBUG
|
||||
chkAction(&daNpc_Toby_c::test),
|
||||
#else
|
||||
0,
|
||||
FALSE,
|
||||
#endif
|
||||
0, mRealShadowSize, NULL, 100.0f, 0, 0, 0);
|
||||
FALSE, mRealShadowSize, NULL, 100.0f, 0, 0, 0
|
||||
);
|
||||
}
|
||||
|
||||
int daNpc_Toby_c::createHeapCallBack(fopAc_ac_c* i_this) {
|
||||
@@ -2182,11 +2183,9 @@ int daNpc_Toby_c::talk(void*) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
int daNpc_Toby_c::test(void* param_0) {
|
||||
// TODO
|
||||
}
|
||||
#endif
|
||||
|
||||
static int daNpc_Toby_Create(void* i_this) {
|
||||
return static_cast<daNpc_Toby_c*>(i_this)->create();
|
||||
|
||||
@@ -116,7 +116,7 @@ static void npc_worm_normal(npc_worm_class* i_this) {
|
||||
a_this->eventInfo.onCondition(dEvtCnd_40_e);
|
||||
}
|
||||
|
||||
#ifndef DEBUG
|
||||
#if !DEBUG
|
||||
if (i_this->field_0x5e8[1] == 0) {
|
||||
i_this->field_0x5a6 = 2;
|
||||
i_this->field_0x5a8 = 0;
|
||||
|
||||
@@ -930,7 +930,7 @@ void daNpcWrestler_c::setAttnPos() {
|
||||
if (chkAction(&daNpcWrestler_c::wait)
|
||||
|| chkAction(&daNpcWrestler_c::talk)) {
|
||||
field_0xc90.SetC(sp68);
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
field_0xc90.SetH(field_0xbdc->field_0x0);
|
||||
field_0xc90.SetR(field_0xbdc->mWallR);
|
||||
#endif
|
||||
@@ -1909,7 +1909,7 @@ bool daNpcWrestler_c::talk(void* param_1) {
|
||||
setAction(&daNpcWrestler_c::gotoArena);
|
||||
} else {
|
||||
int choiceNo = mFlow.getChoiceNo();
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
// "Choice %s\n", (choiceNo == 0) ? "Yes" : "No"
|
||||
OS_REPORT("二択分岐 %s\n", (choiceNo == 0) ? "はい" : "いいえ");
|
||||
#endif
|
||||
@@ -3765,7 +3765,7 @@ bool daNpcWrestler_c::demoSumouReady(void* param_1) {
|
||||
fopAcM_effSmokeSet1(&field_0xde8, &field_0xdec, &sp3c, NULL, 0.8f, &tevStr, 1);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
mDemoCam.field_0x18.set(0.0f, 0.0f, -100.0f);
|
||||
mDoMtx_stack_c::transS(current.pos);
|
||||
mDoMtx_stack_c::YrotM(mCurAngle.y);
|
||||
@@ -3791,7 +3791,7 @@ bool daNpcWrestler_c::demoSumouReady(void* param_1) {
|
||||
break;
|
||||
|
||||
case 5:
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
mDemoCam.field_0x18.set(0.0f, 0.0f, -100.0f);
|
||||
mDoMtx_stack_c::transS(current.pos);
|
||||
mDoMtx_stack_c::YrotM(mCurAngle.y);
|
||||
@@ -3852,7 +3852,7 @@ bool daNpcWrestler_c::demoSumouReady(void* param_1) {
|
||||
dComIfGp_getVibration().StartShock(3, 15, cXyz(0.0f, 1.0f, 0.0f));
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
mDoMtx_stack_c::transS(fopAcM_GetPosition(daPy_getPlayerActorClass()));
|
||||
mDoMtx_stack_c::YrotM(fopAcM_GetShapeAngle_p(daPy_getPlayerActorClass())->y);
|
||||
mDoMtx_stack_c::transM(field_0xbd8->field_0xd0);
|
||||
@@ -3878,7 +3878,7 @@ bool daNpcWrestler_c::demoSumouReady(void* param_1) {
|
||||
break;
|
||||
|
||||
case 9:
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
mDoMtx_stack_c::transS(fopAcM_GetPosition(daPy_getPlayerActorClass()));
|
||||
mDoMtx_stack_c::YrotM(fopAcM_GetShapeAngle_p(daPy_getPlayerActorClass())->y);
|
||||
mDoMtx_stack_c::transM(field_0xbd8->field_0xdc);
|
||||
@@ -4700,7 +4700,7 @@ BOOL daNpcWrestler_c::EvCut_grDSEntry(int i_cutIndex) {
|
||||
case '0009':
|
||||
if (setTalkAngle() && talkProc(NULL, TRUE, NULL)) {
|
||||
int choice_no = mFlow.getChoiceNo();
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
// "Two-way split %s\n", (mFlow.getChoiceNo() == 0) ? "Yes" : "No"
|
||||
OS_REPORT("二択分岐 %s\n", (choice_no == 0) ? "はい" : "いいえ");
|
||||
#endif
|
||||
@@ -4829,7 +4829,7 @@ BOOL daNpcWrestler_c::EvCut_grDSEntry3_4(int i_cutIndex) {
|
||||
case '0001':
|
||||
if (setTalkAngle() && talkProc(NULL, TRUE, NULL)) {
|
||||
s16 choice_no = mFlow.getChoiceNo();
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
char* choice;
|
||||
if (choice_no == 0) {
|
||||
choice = "はい";
|
||||
|
||||
@@ -776,7 +776,7 @@ int daNpc_ykM_c::Draw() {
|
||||
}
|
||||
|
||||
rv = draw(
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
chkAction(&daNpc_ykM_c::test),
|
||||
#else
|
||||
FALSE,
|
||||
@@ -3470,9 +3470,7 @@ BOOL daNpc_ykM_c::race(void* param_1) {
|
||||
angleY = cLib_targetAngleY(&field_0x14fc, &daPy_getPlayerActorClass()->current.pos);
|
||||
|
||||
if (field_0x1560 < 0 ||
|
||||
#if DEBUG
|
||||
field_0x1558.field_0x0 >= 0 &&
|
||||
#endif
|
||||
(!DEBUG || field_0x1558.field_0x0 >= 0) &&
|
||||
(field_0x14fc.abs2(daPy_getPlayerActorClass()->current.pos) < 640000.0f && (angleY < -0x4000 || angleY > 0x4000))) {
|
||||
field_0x1560 = -1;
|
||||
mGndChk.SetPos(&daPy_getPlayerActorClass()->current.pos);
|
||||
@@ -3695,7 +3693,6 @@ BOOL daNpc_ykM_c::talk(void* param_1) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
BOOL daNpc_ykM_c::test(void* param_1) {
|
||||
int rv = FALSE;
|
||||
switch (mMode) {
|
||||
@@ -3718,7 +3715,6 @@ BOOL daNpc_ykM_c::test(void* param_1) {
|
||||
|
||||
return rv;
|
||||
}
|
||||
#endif
|
||||
|
||||
static int daNpc_ykM_Create(void* i_this) {
|
||||
return ((daNpc_ykM_c*)i_this)->create();
|
||||
|
||||
@@ -452,11 +452,14 @@ int daNpc_ykW_c::Draw() {
|
||||
modelData->getMaterialNodePointer(getEyeballMaterialNo())->setMaterialAnm(mpMatAnm[0]);
|
||||
}
|
||||
|
||||
result = draw(
|
||||
#if DEBUG
|
||||
result = draw(chkAction(NULL), 0, mRealShadowSize, NULL, 100.0f, 0, 0, 0);
|
||||
chkAction(NULL),
|
||||
#else
|
||||
result = draw(FALSE, 0, mRealShadowSize, NULL, 100.0f, 0, 0, 0);
|
||||
FALSE,
|
||||
#endif
|
||||
0, mRealShadowSize, NULL, 100.0f, 0, 0, 0
|
||||
);
|
||||
|
||||
if (field_0x1069 != 0) {
|
||||
fopAc_ac_c* actor = mActorMngrs[3].getActorP();
|
||||
@@ -2982,7 +2985,6 @@ int daNpc_ykW_c::talk(void* param_0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
int daNpc_ykW_c::test(void* param_0) {
|
||||
int retval = 0;
|
||||
|
||||
@@ -3008,7 +3010,6 @@ int daNpc_ykW_c::test(void* param_0) {
|
||||
|
||||
return retval;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
static int daNpc_ykW_Create(void* i_this) {
|
||||
|
||||
@@ -254,11 +254,14 @@ int daNpc_zanB_c::Draw() {
|
||||
mdlData_p->getMaterialNodePointer(getEyeballMaterialNo())->setMaterialAnm(mpMatAnm[0]);
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
return draw(chkAction(&daNpc_zanB_c::test), FALSE, mRealShadowSize, NULL, 0.0f, TRUE, FALSE, FALSE);
|
||||
#else
|
||||
return draw(FALSE, FALSE, mRealShadowSize, NULL, 0.0f, TRUE, FALSE, FALSE);
|
||||
#endif
|
||||
return draw(
|
||||
#if DEBUG
|
||||
chkAction(&daNpc_zanB_c::test),
|
||||
#else
|
||||
FALSE,
|
||||
#endif
|
||||
FALSE, mRealShadowSize, NULL, 0.0f, TRUE, FALSE, FALSE
|
||||
);
|
||||
}
|
||||
|
||||
int daNpc_zanB_c::createHeapCallBack(fopAc_ac_c* i_this) {
|
||||
|
||||
@@ -251,7 +251,7 @@ int daNpc_ZelRo_c::Draw() {
|
||||
}
|
||||
|
||||
return draw(
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
chkAction(&daNpc_ZelRo_c::test),
|
||||
#else
|
||||
FALSE,
|
||||
@@ -626,12 +626,10 @@ int daNpc_ZelRo_c::talk(void* param_1) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
int daNpc_ZelRo_c::test(void* param_1) {
|
||||
int rt = 0;
|
||||
return rt;
|
||||
}
|
||||
#endif
|
||||
|
||||
static int daNpc_ZelRo_Create(void* a_this) {
|
||||
return static_cast<daNpc_ZelRo_c*>(a_this)->create();
|
||||
|
||||
@@ -313,11 +313,14 @@ int daNpc_Zelda_c::Draw() {
|
||||
modelData->getMaterialNodePointer(getEyeballRMaterialNo())->setMaterialAnm(mpMatAnm[1]);
|
||||
}
|
||||
|
||||
return draw(
|
||||
#if DEBUG
|
||||
return draw(chkAction(NULL), TRUE, mRealShadowSize, NULL, 100.0f, FALSE, FALSE, FALSE);
|
||||
chkAction(NULL),
|
||||
#else
|
||||
return draw(NULL, TRUE, mRealShadowSize, NULL, 100.0f, FALSE, FALSE, FALSE);
|
||||
FALSE,
|
||||
#endif
|
||||
TRUE, mRealShadowSize, NULL, 100.0f, FALSE, FALSE, FALSE
|
||||
);
|
||||
}
|
||||
|
||||
int daNpc_Zelda_c::createHeapCallBack(fopAc_ac_c* i_this) {
|
||||
|
||||
@@ -163,7 +163,7 @@ int daTurara_c::create() {
|
||||
fopAcM_setCullSizeBox2(this, mpModel[field_0x984]->getModelData());
|
||||
setBaseMtx();
|
||||
field_0x994 = 1;
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
l_HIO.entryHIO("つらら");
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ daAmiShutter_HIO_c::daAmiShutter_HIO_c() {
|
||||
mWaitTime = 0;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
void daAmiShutter_HIO_c::genMessage(JORMContext* i_ctx) {
|
||||
i_ctx->genSlider("open速度", &mMaxOpenSpeed, 0.1f, 1000.0f,
|
||||
0, NULL, 0xffff, 0xffff, 512, 24);
|
||||
@@ -102,7 +102,7 @@ cPhs__Step daAmiShutter_c::create() {
|
||||
init_modeWait();
|
||||
}
|
||||
setBaseMtx();
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
l_HIO.entryHIO("アミシャッター");
|
||||
#endif
|
||||
}
|
||||
@@ -263,7 +263,7 @@ int daAmiShutter_c::Draw() {
|
||||
|
||||
int daAmiShutter_c::Delete() {
|
||||
dComIfG_resDelete(&mPhaseReq, "S_Zami");
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
l_HIO.removeHIO();
|
||||
#endif
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ static bool l_HIOInit;
|
||||
|
||||
static daObj_BattaHIO_c l_HIO;
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
|
||||
void daObj_BattaHIO_c::genMessage(JORMContext* ctx) {
|
||||
// Golden bugs
|
||||
|
||||
@@ -38,7 +38,7 @@ s16 const daObjBm_c::M_dir_base[4] = {
|
||||
0xC000,
|
||||
};
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
class daObjBm_HIO_c : public mDoHIO_entry_c {
|
||||
public:
|
||||
daObjBm_HIO_c();
|
||||
@@ -391,7 +391,7 @@ int daObjBm_c::CreateHeap() {
|
||||
}
|
||||
mpBtkAnm->setFrame(mpBtkAnm->getEndFrame());
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
pbtk = (J3DAnmTextureSRTKey*)dComIfG_getObjectRes(l_arcName, 0x18);
|
||||
JUT_ASSERT(840, pbtk != NULL);
|
||||
#endif
|
||||
@@ -447,8 +447,8 @@ int daObjBm_c::create1st() {
|
||||
return phase_state;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
OS_REPORT("新ビーモス:0x%x\n", fopAcM_GetParam(this));
|
||||
#if DEBUG
|
||||
l_HIO.entryHIO("ビーモス");
|
||||
#endif
|
||||
}
|
||||
@@ -457,7 +457,7 @@ int daObjBm_c::create1st() {
|
||||
}
|
||||
|
||||
int daObjBm_c::Execute(Mtx** param_0) {
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
scale.setall(l_HIO.mBodyScale);
|
||||
mpModel->setBaseScale(scale);
|
||||
daPy_py_c* player = daPy_getPlayerActorClass();
|
||||
@@ -1727,7 +1727,7 @@ int daObjBm_c::Draw() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
void daObjBm_c::debugDraw() {
|
||||
if (l_HIO.mDebugDraw) {
|
||||
GXColor local_4c = {
|
||||
|
||||
@@ -1286,32 +1286,28 @@ int daObjCarry_c::CreateHeap() {
|
||||
int daObjCarry_c::create() {
|
||||
preInit();
|
||||
|
||||
#ifdef DEBUG
|
||||
if (prm_chk_type_lightball() && strcmp(dComIfGp_getStartStageName(), "T_ENE02") == 0) {
|
||||
goto next;
|
||||
}
|
||||
#endif
|
||||
if (!(DEBUG && prm_chk_type_lightball() &&
|
||||
strcmp(dComIfGp_getStartStageName(), "T_ENE02") == 0)) {
|
||||
int create_phase;
|
||||
create_phase = cPhs_NEXT_e;
|
||||
|
||||
int create_phase;
|
||||
create_phase = cPhs_NEXT_e;
|
||||
switch (mType) {
|
||||
case TYPE_BALL_S:
|
||||
create_phase = (cPhs__Step)checkCreate_LightBallA();
|
||||
break;
|
||||
case TYPE_BALL_S_2:
|
||||
create_phase = (cPhs__Step)checkCreate_LightBallB();
|
||||
break;
|
||||
case TYPE_LV8_BALL:
|
||||
create_phase = (cPhs__Step)checkCreate_Lv8Ball();
|
||||
break;
|
||||
}
|
||||
|
||||
switch (mType) {
|
||||
case TYPE_BALL_S:
|
||||
create_phase = (cPhs__Step)checkCreate_LightBallA();
|
||||
break;
|
||||
case TYPE_BALL_S_2:
|
||||
create_phase = (cPhs__Step)checkCreate_LightBallB();
|
||||
break;
|
||||
case TYPE_LV8_BALL:
|
||||
create_phase = (cPhs__Step)checkCreate_Lv8Ball();
|
||||
break;
|
||||
if (create_phase != cPhs_NEXT_e) {
|
||||
return create_phase;
|
||||
}
|
||||
}
|
||||
|
||||
if (create_phase != cPhs_NEXT_e) {
|
||||
return create_phase;
|
||||
}
|
||||
|
||||
next:
|
||||
int phase_state = dComIfG_resLoad(&mPhaseReq, getArcName());
|
||||
if (phase_state == cPhs_COMPLEATE_e) {
|
||||
if (!fopAcM_entrySolidHeap(this, CheckCreateHeap, data().m_heapSize)) {
|
||||
@@ -1970,7 +1966,7 @@ int daObjCarry_c::draw() {
|
||||
}
|
||||
|
||||
void daObjCarry_c::debugDraw() {
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (KREG_S(8) == 10000 && !mRotAxis.isZero()) {
|
||||
cXyz start(current.pos);
|
||||
start.y += 35.0f;
|
||||
|
||||
@@ -228,7 +228,7 @@ bool daObjCRVFENCE_c::checkViewArea(cXyz* param_1) {
|
||||
bool rv = false;
|
||||
bool bVar1 = false;
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (sp24.x >= 0.0f) {
|
||||
if (sp24.y <= FB_WIDTH) {
|
||||
bVar1 = true;
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
#include "d/actor/d_a_obj_damCps.h"
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
#include "d/d_debug_viewer.h"
|
||||
|
||||
static daObjDamCps_HIO_c l_HIO;
|
||||
@@ -210,7 +210,7 @@ extern actor_process_profile_definition g_profile_Obj_DamCps = {
|
||||
0, // mParameters
|
||||
&g_fopAc_Method.base, // sub_method
|
||||
629, // mPriority
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
&l_daObjDamCps_Method, // sub_method
|
||||
#else
|
||||
NULL, // sub_method
|
||||
|
||||
@@ -110,7 +110,7 @@ void daObjDigSnow_c::mode_init_dig() {
|
||||
if (gnd_height != -G_CM3D_F_INF) {
|
||||
mGroundHeight = gnd_height;
|
||||
} else {
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
// "No BG under digsnow!"
|
||||
OS_REPORT_ERROR("掘る雪の下にBGがありません!");
|
||||
fopAcM_delete(this);
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#include "d/actor/d_a_e_ymb.h"
|
||||
#include "f_op/f_op_camera_mng.h"
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
daObjDrop_HIO_c l_HIO;
|
||||
#endif
|
||||
|
||||
@@ -215,7 +215,7 @@ int daObjDrop_c::modeNoParent() {
|
||||
parentActorID = fopAcM_GetID(pparent);
|
||||
setMode(MODE_PARENT_WAIT_e);
|
||||
} else {
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (!l_HIO.field_0x17) {
|
||||
// "Drop of Light: Waiting for Shadow Insect Creation! SW=%d\n"
|
||||
OS_REPORT("光の雫:闇虫生成待ち!SW=%d\n", getYmSwbit());
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include "d/d_debug_viewer.h"
|
||||
#include "d/d_procname.h"
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
|
||||
daObjFallObj_HIO_c::daObjFallObj_HIO_c() {
|
||||
mMovementShake = 0;
|
||||
@@ -120,7 +120,7 @@ int daObjFallObj_c::create1st() {
|
||||
return phase;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
// Falling obj
|
||||
l_HIO.entryHIO("落下OBJ");
|
||||
#endif
|
||||
@@ -363,7 +363,7 @@ int daObjFallObj_c::Draw() {
|
||||
mDoExt_modelUpdateDL(mpModel);
|
||||
dComIfGd_setList();
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (l_HIO.mCheckDisplay) {
|
||||
mpBgW->CalcPlane();
|
||||
daPy_py_c* player = daPy_getPlayerActorClass();
|
||||
@@ -381,7 +381,7 @@ int daObjFallObj_c::Delete() {
|
||||
mSoundObj.deleteObject();
|
||||
dComIfG_resDelete(&mPhaseReq, l_arcName);
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
l_HIO.removeHIO();
|
||||
#endif
|
||||
return 1;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include "d/d_cc_d.h"
|
||||
#include "d/d_com_inf_game.h"
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
class daObjFlag2_Hio_c : public JORReflexible {
|
||||
public:
|
||||
daObjFlag2_Hio_c() {
|
||||
@@ -329,7 +329,7 @@ void daObjFlag2_c::create_init() {
|
||||
initBaseMtx();
|
||||
initCollision();
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
M_hio.ct();
|
||||
#endif
|
||||
}
|
||||
@@ -449,7 +449,7 @@ int daObjFlag2_c::execute() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
mFlagCloth.setSpringRate(attr().mSpringCoeeficient);
|
||||
mFlagCloth.setWindRate(attr().mWindCoefficient);
|
||||
mFlagCloth.setDecayRate(attr().mDecayRate);
|
||||
@@ -485,7 +485,7 @@ static int daObjFlag2_Delete(daObjFlag2_c* i_this) {
|
||||
}
|
||||
|
||||
daObjFlag2_c::~daObjFlag2_c() {
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
M_hio.dt();
|
||||
#endif
|
||||
|
||||
|
||||
@@ -352,7 +352,7 @@ int daObjFlag3_c::execute() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
mFlagCloth.setSpringRate(attr().mSpringCoeeficient);
|
||||
mFlagCloth.setWindRate(attr().mWindCoefficient);
|
||||
mFlagCloth.setDecayRate(attr().mDecayRate);
|
||||
@@ -408,7 +408,7 @@ static int daObjFlag3_Delete(daObjFlag3_c* i_this) {
|
||||
}
|
||||
|
||||
daObjFlag3_c::~daObjFlag3_c() {
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
M_hio.dt();
|
||||
#endif
|
||||
|
||||
@@ -445,7 +445,7 @@ void daObjFlag3_c::create_init() {
|
||||
mFlagCloth.setTornado(attr().mTornado);
|
||||
initBaseMtx();
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
M_hio.ct();
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ daObjGOMIKABE_HIO_c::daObjGOMIKABE_HIO_c() {
|
||||
mId = -1;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
void daObjGOMIKABE_HIO_c::genMessage(JORMContext* ctx) {
|
||||
// Zora Rock
|
||||
ctx->genLabel("ゾーラ岩", 0x80000001, 0, NULL, 0xffff, 0xffff, 0x200, 0x18);
|
||||
|
||||
@@ -125,7 +125,7 @@ int daGpTaru_c::create() {
|
||||
mExplosionRange = 80.0f;
|
||||
field_0x955 = 1;
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
l_HIO.entryHIO("火薬樽");
|
||||
#endif
|
||||
}
|
||||
@@ -557,7 +557,7 @@ int daGpTaru_c::Delete() {
|
||||
dKyw_pntwind_cut(&mWind);
|
||||
dComIfG_resDelete(&mPhase, "K_ktar00");
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
l_HIO.removeHIO(this);
|
||||
#endif
|
||||
return 1;
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include "d/d_cc_uty.h"
|
||||
#include "d/d_com_inf_game.h"
|
||||
#include "d/d_com_inf_actor.h"
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
#include "d/d_debug_viewer.h"
|
||||
#endif
|
||||
#include "d/d_msg_object.h"
|
||||
@@ -1468,7 +1468,7 @@ int daObj_GrA_c::talk(void* param_1) {
|
||||
}
|
||||
|
||||
if (mMsgFlow.doFlow(this, NULL, 0) != 0) {
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
char* cVar1;
|
||||
int choiceNo = mMsgFlow.getChoiceNo();
|
||||
if (choiceNo != 0) {
|
||||
|
||||
@@ -62,7 +62,7 @@ int daObj_GrA_c::waitDemo(void* param_1) {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (mpHIO->m.field_0x8a) {
|
||||
fopAcM_OffStatus(this, fopAcM_STATUS_UNK_0x100);
|
||||
} else {
|
||||
@@ -79,7 +79,7 @@ int daObj_GrA_c::waitDemo(void* param_1) {
|
||||
break;
|
||||
|
||||
case 2:
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
fopAcM_OnStatus(this, fopAcM_STATUS_UNK_0x100);
|
||||
#endif
|
||||
break;
|
||||
|
||||
@@ -1858,7 +1858,7 @@ void daObj_GrA_c::calcCatchPos(f32 param_1, int param_2) {
|
||||
field_0x91a.y = shape_angle.y;
|
||||
}
|
||||
} else {
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
dDbVw_Report(100, 100, "pos.y = %f", sp9c.y - player->current.pos.y);
|
||||
#endif
|
||||
|
||||
|
||||
@@ -142,7 +142,7 @@ int daObjIceBlk_c::saveCurrentPos() {
|
||||
int nearest_point_no = 0;
|
||||
|
||||
for (int i = 0; i < mpPath->m_num; i++) {
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
f32 dist = current.pos.absXZ(point->m_position);
|
||||
if (dist < nearest_dist) {
|
||||
nearest_point_no = i;
|
||||
@@ -279,7 +279,7 @@ int daObjIceBlk_c::Create() {
|
||||
mColdEffEmitters[i] =
|
||||
dComIfGp_particle_set(l_eff_id[i], ¤t.pos, &home.angle, &scale, 0xFF,
|
||||
NULL, -1, NULL, NULL, NULL);
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (mColdEffEmitters[i] == NULL) {
|
||||
// "Ice Block: Cold Effect set failed\n"
|
||||
OS_REPORT("氷ブロック:冷気エフェクトセット失敗\n");
|
||||
|
||||
@@ -147,13 +147,13 @@ int daObjIkada_c::Execute(Mtx** mtx) {
|
||||
posY = fopAcM_wt_c::getWaterY();
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
field_0x5c4 = field_0x5c4 + (((TREG_S(1) + 0x350) + (HREG_F(1) + 2.0f)) * field_0x5a0 + field_0x5a4 * HREG_F(9));
|
||||
#else
|
||||
field_0x5c4 = field_0x5c4 + (((HREG_F(1) + 2.0f) * field_0x5a0) + 848.0f) + field_0x5a4 * HREG_F(9);
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
field_0x5c6 = field_0x5c6 + (((TREG_S(2) + 0x350) + (HREG_F(2) + 2.0f)) * field_0x5a0 + field_0x5a4 * HREG_F(9));
|
||||
#else
|
||||
field_0x5c6 = field_0x5c6 + (((HREG_F(2) + 2.0f) * field_0x5a0) + 848.0f) + field_0x5a4 * HREG_F(9);
|
||||
|
||||
@@ -50,7 +50,7 @@ daObj_ItaMato_HIOParam const daObj_ItaMato_Param_c::m = {
|
||||
20.0f,
|
||||
};
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
daObj_ItaMato_HIO_c::daObj_ItaMato_HIO_c() {
|
||||
mAttr = daObj_ItaMato_Param_c::m;
|
||||
}
|
||||
@@ -117,7 +117,7 @@ static char* l_resName = "H_ItaMato";
|
||||
daObj_ItaMato_c::~daObj_ItaMato_c() {
|
||||
OS_REPORT("|%06d:%x|daObj_ItaMato_c -> デストラクト\n", g_Counter.mCounter0, this);
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (mHIO != NULL) {
|
||||
mHIO->removeHIO();
|
||||
}
|
||||
@@ -152,7 +152,7 @@ cPhs__Step daObj_ItaMato_c::create() {
|
||||
fopAcM_SetMtx(this, mpModels[health]->getBaseTRMtx());
|
||||
fopAcM_setCullSizeBox(this, -200.0f, -50.0f, -200.0f, 200.0f, 200.0f, 200.0f);
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
mHIO = &l_HIO;
|
||||
mHIO->entryHIO("板的");
|
||||
#endif
|
||||
|
||||
@@ -245,7 +245,7 @@ int daItem_c::_daItem_create() {
|
||||
m_itemNo = daItem_prm::getItemNo(this);
|
||||
BOOL flag = dItem_data::chkFlag(m_itemNo, 2);
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (dItem_data::getFieldArc(m_itemNo) == NULL) {
|
||||
// "Item Num<%d>: No Resource Archive specified!!\n"
|
||||
OS_REPORT_ERROR("アイテム番号<%d>:リソースのアーカイブ指定がありません!!\n", m_itemNo);
|
||||
|
||||
@@ -524,7 +524,7 @@ void daObjKAM_c::Z_BufferChk() {
|
||||
} else {
|
||||
cameraHeight = 0.0f;
|
||||
}
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
#define Z_BUFFERCHK_X_MAX FB_WIDTH
|
||||
#define Z_BUFFERCHK_Y_MAX FB_HEIGHT
|
||||
#else
|
||||
@@ -779,7 +779,7 @@ int daObjKAM_c::create() {
|
||||
mDraw = true;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
#define DAOBJKAM_C_CREATE_DIST_INDEX fopAc_attn_ETC_e
|
||||
#else
|
||||
#define DAOBJKAM_C_CREATE_DIST_INDEX fopAc_attn_CARRY_e
|
||||
|
||||
@@ -39,7 +39,7 @@ static dCcD_SrcCyl l_ccDCyl = {
|
||||
static daObj_KBacket_Param_c l_HIO;
|
||||
|
||||
static inline const daObj_KBacket_HIOParam* get_params(daObj_KBacket_c* i_this) {
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
return &i_this->mHIO->param;
|
||||
#else
|
||||
return &daObj_KBacket_Param_c::m;
|
||||
@@ -48,7 +48,7 @@ static inline const daObj_KBacket_HIOParam* get_params(daObj_KBacket_c* i_this)
|
||||
|
||||
daObj_KBacket_c::~daObj_KBacket_c() {
|
||||
OS_REPORT("|%06d:%x|daObj_KBacket_c -> デストラクト\n", g_Counter.mCounter0, this);
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
if (mHIO != NULL) {
|
||||
mHIO->removeHIO();
|
||||
}
|
||||
@@ -340,7 +340,7 @@ int daObj_KBacket_c::Execute() {
|
||||
field_0xa4a = 1;
|
||||
} else {
|
||||
if (mObjAcch.ChkGroundHit() != 0) {
|
||||
#ifndef DEBUG
|
||||
#if !DEBUG
|
||||
fopAcM_seStart(this, Z2SE_OBJ_WOODSTICK_BOUND, 0);
|
||||
#endif
|
||||
if (field_0x9d4.y < -30.0f) {
|
||||
@@ -359,7 +359,7 @@ int daObj_KBacket_c::Execute() {
|
||||
} else {
|
||||
if (field_0xa4a != 0) {
|
||||
if (mObjAcch.ChkGroundHit() != 0) {
|
||||
#ifndef DEBUG
|
||||
#if !DEBUG
|
||||
fopAcM_seStart(this, Z2SE_OBJ_WOODSTICK_BOUND, 0);
|
||||
#endif
|
||||
if (this->field_0x9d4.y < -30.0f) {
|
||||
@@ -376,7 +376,7 @@ int daObj_KBacket_c::Execute() {
|
||||
}
|
||||
} else {
|
||||
if (field_0xa49 != 0) {
|
||||
#ifndef DEBUG
|
||||
#if !DEBUG
|
||||
fopAcM_seStart(this, Z2SE_OBJ_WOODSTICK_PUT, 0);
|
||||
#endif
|
||||
} else {
|
||||
|
||||
@@ -15,7 +15,7 @@ daObj_Kbox_HIO_c::daObj_Kbox_HIO_c() {
|
||||
mWidth = 2.0f;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
void daObj_Kbox_HIO_c::genMessage(JORMContext* ctx) {
|
||||
// Skull fish wooden box
|
||||
ctx->genLabel(" スカル魚木箱 ", 0x80000001, 0, NULL, 0xffff, 0xffff, 0x200, 0x18);
|
||||
|
||||
@@ -259,9 +259,7 @@ int daObjKGate_c::Create() {
|
||||
l_cull_box.max.y, l_cull_box.max.z);
|
||||
|
||||
if (dComIfG_Bgsp().Regist(mpBgW, this)) {
|
||||
#ifdef DEBUG
|
||||
OSReport_Error("キコルの門:BG登録失敗しました\n");
|
||||
#endif
|
||||
OS_REPORT_ERROR("キコルの門:BG登録失敗しました\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -336,7 +334,7 @@ int daObjKGate_c::create1st() {
|
||||
phase_state =
|
||||
MoveBGCreate(l_arcName[mNameArg], l_gateDzbIdx[mNameArg], NULL, heap_size, NULL);
|
||||
if (phase_state == cPhs_ERROR_e) {
|
||||
#ifdef DEBUG
|
||||
#if DEBUG
|
||||
OSReport("KGATE PARAM:%x\n", fopAcM_GetParam(this));
|
||||
#endif
|
||||
return phase_state;
|
||||
@@ -956,9 +954,7 @@ int daObjKGate_c::Draw() {
|
||||
int daObjKGate_c::Delete() {
|
||||
if (mpBgW != NULL && mpBgW->ChkUsed()) {
|
||||
if (dComIfG_Bgsp().Release(mpBgW)) {
|
||||
#ifdef DEBUG
|
||||
OSReport("Release Error\n");
|
||||
#endif
|
||||
OS_REPORT("Release Error\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user