mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-05-30 09:06:19 -04:00
" if (1) {} " & "if (0) {}" and tab/white place
This commit is contained in:
@@ -922,7 +922,6 @@ void AudioLoad_RelocateFont(s32 fontId, SoundFontData* mem, RelocInfo* relocInfo
|
||||
#define BASE_OFFSET(x) (void*)((u32)(x) + (u32)(mem))
|
||||
|
||||
reloc2 = ptrs[0];
|
||||
if (1) {}
|
||||
if ((reloc2 != 0 || !gUseLegacySD) && (numDrums != 0))
|
||||
{
|
||||
ptrs[0] = BASE_OFFSET(reloc2);
|
||||
@@ -963,7 +962,6 @@ void AudioLoad_RelocateFont(s32 fontId, SoundFontData* mem, RelocInfo* relocInfo
|
||||
}
|
||||
|
||||
reloc2 = ptrs[1];
|
||||
if (1) {}
|
||||
if ((reloc2 != 0 || !gUseLegacySD) && (numSfx != 0)) {
|
||||
ptrs[1] = BASE_OFFSET(reloc2);
|
||||
for (i = 0; i < numSfx; i++) {
|
||||
@@ -1805,7 +1803,6 @@ void AudioLoad_FinishAsyncLoad(AudioAsyncLoad* asyncLoad) {
|
||||
u32 sampleBankId2;
|
||||
RelocInfo relocInfo;
|
||||
|
||||
if (1) {}
|
||||
switch (ASYNC_TBLTYPE(retMsg)) {
|
||||
case SEQUENCE_TABLE:
|
||||
AudioLoad_SetSeqLoadStatus(ASYNC_ID(retMsg), ASYNC_STATUS(retMsg));
|
||||
@@ -1829,7 +1826,6 @@ void AudioLoad_FinishAsyncLoad(AudioAsyncLoad* asyncLoad) {
|
||||
}
|
||||
|
||||
doneMsg.data32 = asyncLoad->retMsg;
|
||||
if (1) {}
|
||||
asyncLoad->status = LOAD_STATUS_WAITING;
|
||||
osSendMesg(asyncLoad->retQueue, doneMsg, OS_MESG_NOBLOCK);
|
||||
}
|
||||
@@ -2139,7 +2135,6 @@ s32 AudioLoad_GetSamplesForFont(s32 fontId, SoundFontSample** sampleSet) {
|
||||
|
||||
for (i = 0; i < numDrums; i++) {
|
||||
Drum* drum = Audio_GetDrum(fontId, i);
|
||||
if (1) {}
|
||||
if (drum != NULL) {
|
||||
numSamples = AudioLoad_AddToSampleSet(drum->sound.sample, numSamples, sampleSet);
|
||||
}
|
||||
|
||||
@@ -786,7 +786,7 @@ Acmd* AudioSynth_ProcessNote(s32 noteIndex, NoteSubEu* noteSubEu, NoteSynthesisS
|
||||
gAudioContext.curLoadedBook = audioFontSample->book->book;
|
||||
break;
|
||||
}
|
||||
nEntries = 16 * audioFontSample->book->order * audioFontSample->book->npredictors;
|
||||
nEntries = 16 * audioFontSample->book->order * audioFontSample->book->npredictors;
|
||||
aLoadADPCM(cmd++, nEntries, gAudioContext.curLoadedBook);
|
||||
}
|
||||
}
|
||||
@@ -898,7 +898,7 @@ Acmd* AudioSynth_ProcessNote(s32 noteIndex, NoteSubEu* noteSubEu, NoteSynthesisS
|
||||
|
||||
nSamplesInThisIteration = nSamplesToDecode + nSamplesInFirstFrame - nTrailingSamplesToIgnore;
|
||||
if (nSamplesProcessed == 0) {
|
||||
skipBytes = nFirstFrameSamplesToIgnore * 2;
|
||||
skipBytes = nFirstFrameSamplesToIgnore * 2;
|
||||
} else {
|
||||
phi_s4 = ALIGN16(s5 + 16);
|
||||
}
|
||||
|
||||
@@ -60,7 +60,6 @@ void func_800AA0B4(void) {
|
||||
gPadMgr.retraceCallback = func_800A9F30;
|
||||
gPadMgr.retraceCallbackValue = 0;
|
||||
|
||||
if (1) {}
|
||||
}
|
||||
|
||||
void func_800AA0F0(void) {
|
||||
|
||||
@@ -215,7 +215,6 @@ AudioTask* func_800E5000(void) {
|
||||
task->dram_stack_size = 0;
|
||||
task->output_buff = NULL;
|
||||
task->output_buff_size = NULL;
|
||||
if (1) {}
|
||||
task->data_ptr = (u64*)gAudioContext.abiCmdBufs[index];
|
||||
task->data_size = abiCmdCnt * sizeof(Acmd);
|
||||
task->yield_data_ptr = NULL;
|
||||
|
||||
@@ -1558,7 +1558,6 @@ void func_800ED458(s32 arg0) {
|
||||
if ((D_8016BA10 == 0) ||
|
||||
((D_8016BA10 & sOcarinaAllowedBtnMask) != (sCurOcarinaBtnPress & sOcarinaAllowedBtnMask))) {
|
||||
D_8016BA10 = 0;
|
||||
if (1) {}
|
||||
sCurOcarinaBtnVal = 0xFF;
|
||||
sCurOcarinaBtnIdx = 0xFF;
|
||||
phi_v1_2 = (sCurOcarinaBtnPress & sOcarinaAllowedBtnMask) & (sPrevOcarinaBtnPress & sOcarinaAllowedBtnMask);
|
||||
@@ -1802,7 +1801,6 @@ void func_800EDD68(u8 arg0) {
|
||||
lastNote = song[i].noteIdx;
|
||||
}
|
||||
|
||||
if (1) {}
|
||||
|
||||
if (sRecordSongPos != (i + 1)) {
|
||||
sRecordSongPos = i + 2;
|
||||
@@ -2030,7 +2028,6 @@ s32 Audio_OcaMemoryGameGenNote(void) {
|
||||
sOcarinaSongs[OCARINA_SONG_MEMORY_GAME][sOcaMinigameAppendPos].unk_02 = 0;
|
||||
sOcarinaSongs[OCARINA_SONG_MEMORY_GAME][sOcaMinigameAppendPos + 1].noteIdx = 0xFF;
|
||||
sOcarinaSongs[OCARINA_SONG_MEMORY_GAME][sOcaMinigameAppendPos + 1].unk_02 = 0;
|
||||
if (1) {}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -2156,7 +2156,7 @@ s32 DbCamera_UpdateDemoControl(DbCamera* dbCamera, Camera* cam) {
|
||||
sLastFileIdx = sCurFileIdx;
|
||||
D_801612EA = sDbCameraCuts[idx1].letter;
|
||||
}
|
||||
} else if (!CHECK_BTN_ALL(sGlobalCtx->state.input[2].cur.button, BTN_L)) {
|
||||
} else if (!CHECK_BTN_ALL(sGlobalCtx->state.input[2].cur.button, BTN_L)) {
|
||||
if (sLastFileIdx != -1) {
|
||||
switch (sp74[sCurFileIdx]) {
|
||||
case '?':
|
||||
|
||||
@@ -577,9 +577,6 @@ void Fault_WaitForButtonCombo()
|
||||
u32 kDown;
|
||||
u32 kCur;
|
||||
|
||||
if (1) {}
|
||||
if (1) {}
|
||||
|
||||
osSyncPrintf(
|
||||
VT_FGCOL(WHITE) "KeyWaitB (LRZ " VT_FGCOL(WHITE) "上" VT_FGCOL(YELLOW) "下 " VT_FGCOL(YELLOW) "上" VT_FGCOL(WHITE) "下 " VT_FGCOL(WHITE) "左" VT_FGCOL(
|
||||
YELLOW) "左 " VT_FGCOL(YELLOW) "右" VT_FGCOL(WHITE) "右 " VT_FGCOL(GREEN) "B" VT_FGCOL(BLUE) "A" VT_FGCOL(RED) "START" VT_FGCOL(WHITE) ")" VT_RST
|
||||
|
||||
@@ -182,8 +182,6 @@ void GameState_Draw(GameState* gameState, GraphicsContext* gfxCtx) {
|
||||
Graph_BranchDlist(polyOpaP, newDList);
|
||||
POLY_OPA_DISP = newDList;
|
||||
|
||||
if (1) {}
|
||||
|
||||
CLOSE_DISPS(gfxCtx);
|
||||
|
||||
func_80063D7C(gfxCtx);
|
||||
@@ -223,8 +221,6 @@ void func_800C49F4(GraphicsContext* gfxCtx) {
|
||||
Graph_BranchDlist(polyOpaP, newDlist);
|
||||
POLY_OPA_DISP = newDlist;
|
||||
|
||||
if (1) {}
|
||||
|
||||
CLOSE_DISPS(gfxCtx);
|
||||
}
|
||||
|
||||
|
||||
@@ -229,8 +229,6 @@ void Graph_TaskSet00(GraphicsContext* gfxCtx) {
|
||||
task->data_size = (uintptr_t)WORK_DISP - (uintptr_t)gfxCtx->workBuffer;
|
||||
CLOSE_DISPS(gfxCtx);
|
||||
|
||||
{ s32 pad2; } // Necessary to match stack usage
|
||||
|
||||
task->yield_data_ptr = (u64*)gGfxSPTaskYieldBuffer;
|
||||
task->yield_data_size = sizeof(gGfxSPTaskYieldBuffer);
|
||||
|
||||
@@ -258,8 +256,6 @@ void Graph_TaskSet00(GraphicsContext* gfxCtx) {
|
||||
scTask->framebuffer = cfb;
|
||||
sGraphCfbInfoIdx = sGraphCfbInfoIdx % ARRAY_COUNT(sGraphCfbInfos);
|
||||
|
||||
if (1) {}
|
||||
|
||||
gfxCtx->schedMsgQ = &gSchedContext.cmdQ;
|
||||
|
||||
osSendMesgPtr(&gSchedContext.cmdQ, scTask, OS_MESG_BLOCK);
|
||||
|
||||
@@ -223,8 +223,6 @@ void PadMgr_ProcessInputs(PadMgr* padMgr) {
|
||||
for (i = 0; i < padMgr->nControllers; i++, input++, padnow1++) {
|
||||
input->prev = input->cur;
|
||||
|
||||
if (1) {} // Necessary to match
|
||||
|
||||
switch (padnow1->err_no) {
|
||||
case 0:
|
||||
input->cur = *padnow1;
|
||||
|
||||
@@ -851,8 +851,6 @@ void Matrix_RotateAxis(f32 angle, Vec3f* axis, u8 mode) {
|
||||
cmf->yy = axis->y * axis->y * rCos + cos;
|
||||
cmf->zz = axis->z * axis->z * rCos + cos;
|
||||
|
||||
if (0) {}
|
||||
|
||||
temp2 = axis->x * rCos * axis->y;
|
||||
temp3 = axis->z * sin;
|
||||
cmf->yx = temp2 + temp3;
|
||||
|
||||
@@ -247,8 +247,6 @@ void UCodeDisas_PrintVertices(UCodeDisas* this, Vtx* vtx, s32 count, s32 start)
|
||||
vtx->v.cn[3], start + i);
|
||||
}
|
||||
vtx++;
|
||||
|
||||
if (1) {}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -717,7 +715,7 @@ void UCodeDisas_Disassemble(UCodeDisas* this, GfxMod* ptr) {
|
||||
: "???";
|
||||
|
||||
if ((setscissor.x0frac | setscissor.y0frac | setscissor.x1frac | setscissor.y1frac)) {
|
||||
DISAS_LOG("gsDPSetScissorFrac(%s, %d, %d, %d, %d),", modeStr,
|
||||
DISAS_LOG("gsDPSetScissorFrac(%s, %d, %d, %d, %d),", modeStr,
|
||||
(setscissor.x0 << 2) + setscissor.x0frac, (setscissor.y0 << 2) + setscissor.y0frac,
|
||||
(setscissor.x1 << 2) + setscissor.x1frac, (setscissor.y1 << 2) + setscissor.y1frac);
|
||||
} else {
|
||||
|
||||
@@ -3821,8 +3821,6 @@ void func_80033C30(Vec3f* arg0, Vec3f* arg1, u8 alpha, GlobalContext* globalCtx)
|
||||
|
||||
OPEN_DISPS(globalCtx->state.gfxCtx);
|
||||
|
||||
if (0) {} // Necessary to match
|
||||
|
||||
POLY_OPA_DISP = Gfx_CallSetupDL(POLY_OPA_DISP, 0x2C);
|
||||
|
||||
gDPSetPrimColor(POLY_OPA_DISP++, 0, 0, 0, 0, 0, alpha);
|
||||
@@ -5801,8 +5799,6 @@ s32 func_80037D98(GlobalContext* globalCtx, Actor* actor, s16 arg2, s32* arg3) {
|
||||
|
||||
Actor_GetScreenPos(globalCtx, actor, &sp2C, &sp2A);
|
||||
|
||||
if (0) {} // Necessary to match
|
||||
|
||||
if ((sp2C < 0) || (sp2C > SCREEN_WIDTH) || (sp2A < 0) || (sp2A > SCREEN_HEIGHT)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -216,7 +216,6 @@ void func_80038A28(CollisionPoly* poly, f32 tx, f32 ty, f32 tz, MtxF* dest) {
|
||||
phi_f12 = -(nz * inv_phi_f2);
|
||||
} else {
|
||||
phi_f14 = sqrtf(1.0f - SQ(ny));
|
||||
if (1) {}
|
||||
if (!IS_ZERO(phi_f14)) {
|
||||
inv_phi_f14 = (1.0f / phi_f14);
|
||||
phi_f12 = nx * inv_phi_f14;
|
||||
|
||||
@@ -949,7 +949,6 @@ s32 func_800458D4(Camera* camera, VecSph* eyeAtDir, f32 arg2, f32* arg3, s16 arg
|
||||
eyeAtAngle = Math_FAtan2F(deltaY, OLib_Vec3fDistXZ(&camera->at, &camera->eye));
|
||||
|
||||
if (eyeAtAngle > DEGF_TO_RADF(OREG(32))) {
|
||||
if (1) {}
|
||||
phi_f2 = 1.0f - sinf(DEGF_TO_RADF(eyeAtAngle - OREG(32)));
|
||||
} else if (eyeAtAngle < DEGF_TO_RADF(OREG(33))) {
|
||||
phi_f2 = 1.0f - sinf(DEGF_TO_RADF(OREG(33)) - eyeAtAngle);
|
||||
@@ -1876,7 +1875,6 @@ s32 Camera_Normal3(Camera* camera) {
|
||||
camera->yawUpdateRateInv, sp98, 0.1f);
|
||||
camera->pitchUpdateRateInv = Camera_LERPCeilF((f32)OREG(7) + (anim->swing.swingUpdateRateTimer * 2),
|
||||
camera->pitchUpdateRateInv, sp94, 0.1f);
|
||||
if (1) {}
|
||||
anim->swing.swingUpdateRateTimer--;
|
||||
} else {
|
||||
camera->yawUpdateRateInv = Camera_LERPCeilF(norm3->yawUpdateSpeed, camera->yawUpdateRateInv, sp98, 0.1f);
|
||||
@@ -6665,7 +6663,6 @@ s32 Camera_Special9(Camera* camera) {
|
||||
sCameraInterfaceFlags = params->interfaceFlags;
|
||||
|
||||
switch (camera->animState) {
|
||||
if (1) {}
|
||||
|
||||
case 0:
|
||||
camera->unk_14C &= ~(0x4 | 0x2);
|
||||
@@ -6750,7 +6747,6 @@ s32 Camera_Special9(Camera* camera) {
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (1) {}
|
||||
spAC = playerPosRot->pos;
|
||||
spAC.y += playerYOffset;
|
||||
camera->dist = OLib_Vec3fDist(&spAC, eye);
|
||||
@@ -7781,7 +7777,6 @@ s16 Camera_ChangeSettingFlags(Camera* camera, s16 setting, s16 flags) {
|
||||
}
|
||||
|
||||
if (flags & 8) {
|
||||
if (1) {}
|
||||
camera->camDataIdx = camera->prevCamDataIdx;
|
||||
camera->prevCamDataIdx = -1;
|
||||
} else if (!(flags & 4)) {
|
||||
|
||||
@@ -244,8 +244,6 @@ void func_80063D7C(GraphicsContext* gfxCtx) {
|
||||
Graph_BranchDlist(sp78, sp7C);
|
||||
POLY_OPA_DISP = sp7C;
|
||||
|
||||
if (1) {}
|
||||
|
||||
CLOSE_DISPS(gfxCtx);
|
||||
|
||||
GfxPrint_Destroy(&printer);
|
||||
|
||||
@@ -1910,10 +1910,7 @@ void func_80068C3C(GlobalContext* globalCtx, CutsceneContext* csCtx) {
|
||||
Gfx* displayList;
|
||||
Gfx* prevDisplayList;
|
||||
|
||||
if (0) {} // Necessary to match
|
||||
|
||||
if (gSaveContext.cutsceneIndex >= 0xFFF0) {
|
||||
if (0) {} // Also necessary to match
|
||||
|
||||
if (BREG(0) != 0) {
|
||||
OPEN_DISPS(globalCtx->state.gfxCtx);
|
||||
|
||||
@@ -280,8 +280,6 @@ void EffectBlure_UpdateFlags(EffectBlureElement* elem) {
|
||||
f32 sp30;
|
||||
f32 sp2C;
|
||||
|
||||
if (1) {} // Necessary to match
|
||||
|
||||
Math_Vec3s_DiffToVec3f(&sp64, &elem->p1, &prev->p1);
|
||||
Math_Vec3s_DiffToVec3f(&sp58, &elem->p2, &prev->p2);
|
||||
Math_Vec3s_DiffToVec3f(&sp4C, &next->p1, &elem->p1);
|
||||
@@ -432,8 +430,6 @@ void EffectBlure_DrawElemNoInterpolation(EffectBlure* this, EffectBlureElement*
|
||||
vtx[0].v.cn[2] = sp78.b;
|
||||
vtx[0].v.cn[3] = sp78.a;
|
||||
|
||||
if (1) {} // Necessary to match
|
||||
|
||||
sp60.x = sp8C.x;
|
||||
sp60.y = sp8C.y;
|
||||
sp60.z = sp8C.z;
|
||||
@@ -463,8 +459,6 @@ void EffectBlure_DrawElemNoInterpolation(EffectBlure* this, EffectBlureElement*
|
||||
vtx[2].v.cn[2] = sp7C.b;
|
||||
vtx[2].v.cn[3] = sp7C.a;
|
||||
|
||||
if (1) {} // Necessary to match
|
||||
|
||||
sp60.x = sp84.x;
|
||||
sp60.y = sp84.y;
|
||||
sp60.z = sp84.z;
|
||||
|
||||
@@ -23,8 +23,6 @@ void func_80026230(GlobalContext* globalCtx, Color_RGBA8* color, s16 arg2, s16 a
|
||||
|
||||
POLY_OPA_DISP = displayListHead;
|
||||
|
||||
if (1) {} // Necessary to match
|
||||
|
||||
CLOSE_DISPS(globalCtx->state.gfxCtx);
|
||||
}
|
||||
|
||||
@@ -44,8 +42,6 @@ void func_80026400(GlobalContext* globalCtx, Color_RGBA8* color, s16 arg2, s16 a
|
||||
|
||||
POLY_OPA_DISP = displayListHead;
|
||||
|
||||
if (1) {} // Necessary to match
|
||||
|
||||
CLOSE_DISPS(globalCtx->state.gfxCtx);
|
||||
}
|
||||
}
|
||||
@@ -84,8 +80,6 @@ void func_80026690(GlobalContext* globalCtx, Color_RGBA8* color, s16 arg2, s16 a
|
||||
|
||||
POLY_XLU_DISP = displayListHead;
|
||||
|
||||
if (1) {} // Necessary to match
|
||||
|
||||
CLOSE_DISPS(globalCtx->state.gfxCtx);
|
||||
}
|
||||
|
||||
@@ -104,8 +98,6 @@ void func_80026860(GlobalContext* globalCtx, Color_RGBA8* color, s16 arg2, s16 a
|
||||
|
||||
POLY_XLU_DISP = displayListHead;
|
||||
|
||||
if (1) {} // Necessary to match
|
||||
|
||||
CLOSE_DISPS(globalCtx->state.gfxCtx);
|
||||
}
|
||||
|
||||
|
||||
@@ -169,13 +169,10 @@ void Effect_DrawAll(GraphicsContext* gfxCtx) {
|
||||
if (sEffectContext.blures[i].status.active) {
|
||||
sEffectInfoTable[EFFECT_BLURE1].draw(&sEffectContext.blures[i].effect, gfxCtx);
|
||||
}
|
||||
if (1) {} // Necessary to match
|
||||
if (1) {}
|
||||
}
|
||||
|
||||
for (i = 0; i < SHIELD_PARTICLE_COUNT; i++) {
|
||||
if (sEffectContext.shieldParticles[i].status.active) {
|
||||
if (gfxCtx) {} // Necessary to match
|
||||
sEffectInfoTable[EFFECT_SHIELD_PARTICLE].draw(&sEffectContext.shieldParticles[i].effect, gfxCtx);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -283,7 +283,6 @@ void EnAObj_BoulderFragment(EnAObj* this, GlobalContext* globalCtx) {
|
||||
if (this->dyna.actor.speedXZ != 0.0f && this->dyna.actor.bgCheckFlags & 0x8) {
|
||||
this->dyna.actor.world.rot.y =
|
||||
this->dyna.actor.wallYaw - this->dyna.actor.world.rot.y + this->dyna.actor.wallYaw - 0x8000;
|
||||
if (1) {}
|
||||
this->dyna.actor.bgCheckFlags &= ~0x8;
|
||||
}
|
||||
|
||||
|
||||
@@ -82,8 +82,6 @@ void Lights_Draw(Lights* lights, GraphicsContext* gfxCtx) {
|
||||
light++;
|
||||
}
|
||||
|
||||
if (0) {}
|
||||
|
||||
i++; // abmient light is total number of lights + 1
|
||||
gSPLight(POLY_OPA_DISP++, &lights->l.a, i);
|
||||
gSPLight(POLY_XLU_DISP++, &lights->l.a, i);
|
||||
@@ -120,7 +118,7 @@ void Lights_BindPoint(Lights* lights, LightParams* params, Vec3f* vec) {
|
||||
|
||||
if (light != NULL) {
|
||||
posDiff = sqrtf(posDiff);
|
||||
scale = posDiff / scale;
|
||||
scale = posDiff / scale;
|
||||
scale = 1 - SQ(scale);
|
||||
|
||||
light->l.col[0] = light->l.colc[0] = params->point.color[0] * scale;
|
||||
|
||||
@@ -2866,7 +2866,7 @@ void Message_DrawMain(GlobalContext* globalCtx, Gfx** p) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (sOcarinaNotesAlphaValues[i] != 255) {
|
||||
if (sOcarinaNotesAlphaValues[i] != 255) {
|
||||
sOcarinaNotesAlphaValues[i] += VREG(50);
|
||||
if (sOcarinaNotesAlphaValues[i] >= 255) {
|
||||
sOcarinaNotesAlphaValues[i] = 255;
|
||||
@@ -2977,7 +2977,6 @@ void Message_Draw(GlobalContext* globalCtx) {
|
||||
Graph_BranchDlist(polyOpaP, plusOne);
|
||||
POLY_OPA_DISP = plusOne;
|
||||
}
|
||||
if (1) {}
|
||||
plusOne = Graph_GfxPlusOne(polyOpaP = POLY_OPA_DISP);
|
||||
gSPDisplayList(OVERLAY_DISP++, plusOne);
|
||||
Message_DrawMain(globalCtx, &plusOne);
|
||||
|
||||
@@ -998,7 +998,7 @@ void func_80083108(GlobalContext* globalCtx) {
|
||||
gSaveContext.buttonStatus[0] = gSaveContext.equips.buttonItems[0];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (sp28) {
|
||||
Interface_LoadItemIcon1(globalCtx, 0);
|
||||
|
||||
@@ -1647,7 +1647,6 @@ s32 Gameplay_CameraSetAtEyeUp(GlobalContext* globalCtx, s16 camId, Vec3f* at, Ve
|
||||
s32 Gameplay_CameraSetFov(GlobalContext* globalCtx, s16 camId, f32 fov) {
|
||||
s32 ret = Camera_SetParam(globalCtx->cameraPtrs[camId], 0x20, &fov) & 1;
|
||||
|
||||
if (1) {}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -630,8 +630,6 @@ s32 func_8008F2F8(GlobalContext* globalCtx) {
|
||||
if (!Player_InCsMode(globalCtx)) {
|
||||
triggerEntry = &sTextTriggers[var];
|
||||
|
||||
if (0) {}
|
||||
|
||||
if ((triggerEntry->flag != 0) && !(gSaveContext.textTriggerFlags & triggerEntry->flag) &&
|
||||
(((var == 0) && (this->currentTunic != PLAYER_TUNIC_GORON && CVar_GetS32("gSuperTunic", 0) == 0)) ||
|
||||
(((var == 1) || (var == 3)) && (this->currentBoots == PLAYER_BOOTS_IRON) &&
|
||||
@@ -1223,8 +1221,6 @@ void Player_DrawHookshotReticle(GlobalContext* globalCtx, Player* this, f32 arg2
|
||||
D_801260C8.z = arg2;
|
||||
Matrix_MultVec3f(&D_801260C8, &sp80);
|
||||
|
||||
if (1) {}
|
||||
|
||||
if (BgCheck_AnyLineTest3(&globalCtx->colCtx, &sp8C, &sp80, &sp74, &sp9C, 1, 1, 1, 1, &bgId)) {
|
||||
OPEN_DISPS(globalCtx->state.gfxCtx);
|
||||
|
||||
|
||||
@@ -106,7 +106,6 @@ void func_80095D04(GlobalContext* globalCtx, Room* room, u32 flags) {
|
||||
func_80093C80(globalCtx);
|
||||
gSPMatrix(POLY_OPA_DISP++, &gMtxClear, G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||
}
|
||||
if (1) {}
|
||||
if (flags & 2) {
|
||||
func_8003435C(&D_801270A0, globalCtx);
|
||||
//gSPSegment(POLY_XLU_DISP++, 0x03, room->segment);
|
||||
|
||||
@@ -294,8 +294,6 @@ void func_8009899C(GlobalContext* globalCtx, SceneCmd* cmd) {
|
||||
|
||||
ASSERT(cmd->objectList.num <= OBJECT_EXCHANGE_BANK_MAX);
|
||||
|
||||
if (1) {}
|
||||
|
||||
while (k < cmd->objectList.num) {
|
||||
nextPtr = func_800982FC(&globalCtx->objectCtx, i, *objectEntry);
|
||||
if (i < OBJECT_EXCHANGE_BANK_MAX - 1) {
|
||||
@@ -439,8 +437,6 @@ void func_800991A0(GlobalContext* globalCtx, SceneCmd* cmd) {
|
||||
if (gSaveContext.sceneSetupIndex != 0) {
|
||||
altHeader = ((SceneCmd**)SEGMENTED_TO_VIRTUAL(cmd->altHeaders.segment))[gSaveContext.sceneSetupIndex - 1];
|
||||
|
||||
if (1) {}
|
||||
|
||||
if (altHeader != NULL) {
|
||||
Scene_ExecuteCommands(globalCtx, SEGMENTED_TO_VIRTUAL(altHeader));
|
||||
(cmd + 1)->base.code = 0x14;
|
||||
|
||||
@@ -1317,8 +1317,6 @@ void func_8009B0FC(GlobalContext* globalCtx) {
|
||||
|
||||
OPEN_DISPS(globalCtx->state.gfxCtx);
|
||||
|
||||
if (1) {} // Necessary to match
|
||||
|
||||
spB0 = (globalCtx->roomCtx.unk_74[1] >> 8) & 0xFF;
|
||||
spAC = globalCtx->roomCtx.unk_74[1] & 0xFF;
|
||||
gameplayFrames = globalCtx->gameplayFrames;
|
||||
@@ -1445,8 +1443,6 @@ void func_8009BC44(GlobalContext* globalCtx) {
|
||||
u32 gameplayFrames;
|
||||
s8 sp83;
|
||||
|
||||
if (1) {} // Necessary to match
|
||||
|
||||
sp83 = coss((globalCtx->gameplayFrames * 1500) & 0xFFFF) >> 8;
|
||||
|
||||
OPEN_DISPS(globalCtx->state.gfxCtx);
|
||||
@@ -1503,8 +1499,6 @@ void func_8009C0AC(GlobalContext* globalCtx) {
|
||||
u32 gameplayFrames;
|
||||
s8 sp7B;
|
||||
|
||||
if (1) {} // Necessary to match
|
||||
|
||||
sp7B = coss((globalCtx->gameplayFrames * 1500) & 0xFFFF) >> 8;
|
||||
|
||||
OPEN_DISPS(globalCtx->state.gfxCtx);
|
||||
@@ -1549,8 +1543,6 @@ void* sIceCavernEntranceTextures[] = {
|
||||
void func_8009C3EC(GlobalContext* globalCtx) {
|
||||
u32 gameplayFrames;
|
||||
|
||||
if (0) {} // Necessary to match
|
||||
|
||||
OPEN_DISPS(globalCtx->state.gfxCtx);
|
||||
|
||||
gameplayFrames = globalCtx->gameplayFrames;
|
||||
@@ -1653,8 +1645,6 @@ void* sGTGEntranceTextures[] = {
|
||||
void func_8009CC00(GlobalContext* globalCtx) {
|
||||
u32 gameplayFrames;
|
||||
|
||||
if (0) {} // Necessary to match
|
||||
|
||||
OPEN_DISPS(globalCtx->state.gfxCtx);
|
||||
|
||||
gameplayFrames = globalCtx->gameplayFrames;
|
||||
@@ -1828,8 +1818,6 @@ void* sForestTempleEntranceTextures[] = {
|
||||
void func_8009D758(GlobalContext* globalCtx) {
|
||||
u32 gameplayFrames;
|
||||
|
||||
if (0) {} // Necessary to match
|
||||
|
||||
OPEN_DISPS(globalCtx->state.gfxCtx);
|
||||
|
||||
gameplayFrames = globalCtx->gameplayFrames;
|
||||
@@ -1973,9 +1961,6 @@ void func_8009E0B8(GlobalContext* globalCtx) {
|
||||
spA0 = 500;
|
||||
displayListHead = Graph_Alloc(globalCtx->state.gfxCtx, 6 * sizeof(Gfx));
|
||||
|
||||
if (1) {}
|
||||
if (1) {}
|
||||
|
||||
OPEN_DISPS(globalCtx->state.gfxCtx);
|
||||
|
||||
gameplayFrames = globalCtx->gameplayFrames;
|
||||
@@ -2135,8 +2120,6 @@ void func_8009EAD8(GlobalContext* globalCtx) {
|
||||
void func_8009EE44(GlobalContext* globalCtx) {
|
||||
u32 gameplayFrames;
|
||||
|
||||
if (0) {} // Necessary to match
|
||||
|
||||
OPEN_DISPS(globalCtx->state.gfxCtx);
|
||||
|
||||
gameplayFrames = globalCtx->gameplayFrames;
|
||||
|
||||
@@ -46,8 +46,6 @@ void SkelAnime_DrawLimbLod(GlobalContext* globalCtx, s32 limbIndex, void** skele
|
||||
}
|
||||
}
|
||||
|
||||
if (1) {}
|
||||
|
||||
if (postLimbDraw != NULL) {
|
||||
postLimbDraw(globalCtx, limbIndex, &dList, &rot, arg);
|
||||
}
|
||||
@@ -267,8 +265,6 @@ void SkelAnime_DrawLimbOpa(GlobalContext* globalCtx, s32 limbIndex, void** skele
|
||||
}
|
||||
}
|
||||
|
||||
if (1) {}
|
||||
|
||||
if (postLimbDraw != NULL) {
|
||||
postLimbDraw(globalCtx, limbIndex, &dList, &rot, arg);
|
||||
}
|
||||
|
||||
@@ -351,8 +351,6 @@ void SkinMatrix_SetRotateZYX(MtxF* mf, s16 x, s16 y, s16 z) {
|
||||
|
||||
} else {
|
||||
mf->xx = cosZ;
|
||||
if (1) {}
|
||||
if (1) {}
|
||||
xz = sinZ; // required to match
|
||||
mf->yx = sinZ;
|
||||
mf->zx = mf->xz = mf->yz = 0;
|
||||
@@ -368,7 +366,6 @@ void SkinMatrix_SetRotateZYX(MtxF* mf, s16 x, s16 y, s16 z) {
|
||||
mf->xy = (xy * cos) + (xz * sin);
|
||||
mf->xz = (xz * cos) - (xy * sin);
|
||||
|
||||
if (1) {}
|
||||
yz = mf->yz;
|
||||
yy = mf->yy;
|
||||
mf->yy = (yy * cos) + (yz * sin);
|
||||
@@ -419,8 +416,6 @@ void SkinMatrix_SetRotateYXZ(MtxF* mf, s16 x, s16 y, s16 z) {
|
||||
|
||||
} else {
|
||||
mf->zz = cosY;
|
||||
if (1) {}
|
||||
if (1) {}
|
||||
xy = sinY; // required to match
|
||||
mf->xz = sinY;
|
||||
mf->xy = mf->zy = mf->yz = 0;
|
||||
@@ -434,7 +429,6 @@ void SkinMatrix_SetRotateYXZ(MtxF* mf, s16 x, s16 y, s16 z) {
|
||||
xy = mf->xy;
|
||||
mf->xx = (xx * cos) + (xy * sin);
|
||||
mf->xy = xy * cos - (xx * sin);
|
||||
if (1) {}
|
||||
zy = mf->zy;
|
||||
zx = mf->zx;
|
||||
mf->zx = (zx * cos) + (zy * sin);
|
||||
|
||||
Reference in New Issue
Block a user