mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-02-07 10:50:29 -05:00
Some if (1) {} remove
This commit is contained in:
parent
146fbb0d1b
commit
9e06677f46
@ -249,7 +249,6 @@ void DmaMgr_ProcessMsg(DmaRequest* req) {
|
|||||||
|
|
||||||
while (iter->vromEnd) {
|
while (iter->vromEnd) {
|
||||||
if (vrom >= iter->vromStart && vrom < iter->vromEnd) {
|
if (vrom >= iter->vromStart && vrom < iter->vromEnd) {
|
||||||
if (1) {} // Necessary to match
|
|
||||||
|
|
||||||
if (iter->romEnd == 0) {
|
if (iter->romEnd == 0) {
|
||||||
if (iter->vromEnd < vrom + size) {
|
if (iter->vromEnd < vrom + size) {
|
||||||
|
@ -435,7 +435,6 @@ void func_800C2500(PreRender* this, s32 x, s32 y) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (1) {}
|
|
||||||
if (pxR2 > buffR[i]) {
|
if (pxR2 > buffR[i]) {
|
||||||
for (j = 1; j < 15; j += 2) {
|
for (j = 1; j < 15; j += 2) {
|
||||||
if ((i != j) && (buffR[j] <= buffR[i]) && (buffA[j] == 7)) {
|
if ((i != j) && (buffR[j] <= buffR[i]) && (buffA[j] == 7)) {
|
||||||
|
@ -205,7 +205,6 @@ void Audio_ProcessNotes(void) {
|
|||||||
|
|
||||||
out:
|
out:
|
||||||
if (playbackState->priority != 0) {
|
if (playbackState->priority != 0) {
|
||||||
if (1) {}
|
|
||||||
noteSubEu = ¬e->noteSubEu;
|
noteSubEu = ¬e->noteSubEu;
|
||||||
if (playbackState->unk_04 >= 1 || noteSubEu->bitField0.finished) {
|
if (playbackState->unk_04 >= 1 || noteSubEu->bitField0.finished) {
|
||||||
if (playbackState->adsr.action.s.state == ADSR_STATE_DISABLED || noteSubEu->bitField0.finished) {
|
if (playbackState->adsr.action.s.state == ADSR_STATE_DISABLED || noteSubEu->bitField0.finished) {
|
||||||
|
@ -786,10 +786,7 @@ Acmd* AudioSynth_ProcessNote(s32 noteIndex, NoteSubEu* noteSubEu, NoteSynthesisS
|
|||||||
gAudioContext.curLoadedBook = audioFontSample->book->book;
|
gAudioContext.curLoadedBook = audioFontSample->book->book;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (1) {}
|
nEntries = 16 * audioFontSample->book->order * audioFontSample->book->npredictors;
|
||||||
if (1) {}
|
|
||||||
if (1) {}
|
|
||||||
nEntries = 16 * audioFontSample->book->order * audioFontSample->book->npredictors;
|
|
||||||
aLoadADPCM(cmd++, nEntries, gAudioContext.curLoadedBook);
|
aLoadADPCM(cmd++, nEntries, gAudioContext.curLoadedBook);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -901,8 +898,7 @@ Acmd* AudioSynth_ProcessNote(s32 noteIndex, NoteSubEu* noteSubEu, NoteSynthesisS
|
|||||||
|
|
||||||
nSamplesInThisIteration = nSamplesToDecode + nSamplesInFirstFrame - nTrailingSamplesToIgnore;
|
nSamplesInThisIteration = nSamplesToDecode + nSamplesInFirstFrame - nTrailingSamplesToIgnore;
|
||||||
if (nSamplesProcessed == 0) {
|
if (nSamplesProcessed == 0) {
|
||||||
if (1) {}
|
skipBytes = nFirstFrameSamplesToIgnore * 2;
|
||||||
skipBytes = nFirstFrameSamplesToIgnore * 2;
|
|
||||||
} else {
|
} else {
|
||||||
phi_s4 = ALIGN16(s5 + 16);
|
phi_s4 = ALIGN16(s5 + 16);
|
||||||
}
|
}
|
||||||
|
@ -187,9 +187,6 @@ AudioTask* func_800E5000(void) {
|
|||||||
if (gAudioContext.resetStatus == 0) {
|
if (gAudioContext.resetStatus == 0) {
|
||||||
// msg = 0000RREE R = read pos, E = End Pos
|
// msg = 0000RREE R = read pos, E = End Pos
|
||||||
while (osRecvMesg(gAudioContext.cmdProcQueueP, &sp4C, OS_MESG_NOBLOCK) != -1) {
|
while (osRecvMesg(gAudioContext.cmdProcQueueP, &sp4C, OS_MESG_NOBLOCK) != -1) {
|
||||||
if (1) {}
|
|
||||||
if (1) {}
|
|
||||||
if (1) {}
|
|
||||||
Audio_ProcessCmds(sp4C.data32);
|
Audio_ProcessCmds(sp4C.data32);
|
||||||
j++;
|
j++;
|
||||||
}
|
}
|
||||||
|
@ -3014,14 +3014,12 @@ void AudioDebug_ProcessInput_SndCont(void) {
|
|||||||
|
|
||||||
if (CHECK_BTN_ANY(sDebugPadPress, BTN_CDOWN)) {
|
if (CHECK_BTN_ANY(sDebugPadPress, BTN_CDOWN)) {
|
||||||
if (sAudioSndContSel == 0) {
|
if (sAudioSndContSel == 0) {
|
||||||
if (1) {}
|
|
||||||
func_800F595C(sAudioSndContWork[sAudioSndContSel]);
|
func_800F595C(sAudioSndContWork[sAudioSndContSel]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CHECK_BTN_ANY(sDebugPadPress, BTN_CRIGHT)) {
|
if (CHECK_BTN_ANY(sDebugPadPress, BTN_CRIGHT)) {
|
||||||
if (sAudioSndContSel == 0) {
|
if (sAudioSndContSel == 0) {
|
||||||
if (1) {}
|
|
||||||
func_800F5ACC(sAudioSndContWork[sAudioSndContSel]);
|
func_800F5ACC(sAudioSndContWork[sAudioSndContSel]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -164,7 +164,6 @@ void func_800FCA18(void* blk, u32 nBlk, u32 blkSize, arg3_800FCA18 arg3, s32 arg
|
|||||||
while (pos > end) {
|
while (pos > end) {
|
||||||
pos -= masked_arg2;
|
pos -= masked_arg2;
|
||||||
arg3((void*)pos, 2);
|
arg3((void*)pos, 2);
|
||||||
if (1) {}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!masked_arg2) {}
|
if (!masked_arg2) {}
|
||||||
|
@ -2156,8 +2156,7 @@ s32 DbCamera_UpdateDemoControl(DbCamera* dbCamera, Camera* cam) {
|
|||||||
sLastFileIdx = sCurFileIdx;
|
sLastFileIdx = sCurFileIdx;
|
||||||
D_801612EA = sDbCameraCuts[idx1].letter;
|
D_801612EA = sDbCameraCuts[idx1].letter;
|
||||||
}
|
}
|
||||||
if (1) {}
|
} 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) {
|
if (sLastFileIdx != -1) {
|
||||||
switch (sp74[sCurFileIdx]) {
|
switch (sp74[sCurFileIdx]) {
|
||||||
case '?':
|
case '?':
|
||||||
|
@ -73,7 +73,7 @@ void PadMgr_RumbleControl(PadMgr* padMgr) {
|
|||||||
if (padMgr->rumbleEnable[i] != 0) {
|
if (padMgr->rumbleEnable[i] != 0) {
|
||||||
if (padMgr->rumbleCounter[i] < 3) {
|
if (padMgr->rumbleCounter[i] < 3) {
|
||||||
// clang-format off
|
// clang-format off
|
||||||
if (1) {} osSyncPrintf(VT_FGCOL(YELLOW));
|
osSyncPrintf(VT_FGCOL(YELLOW));
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|
||||||
// "Vibration pack jumble jumble"?
|
// "Vibration pack jumble jumble"?
|
||||||
@ -95,7 +95,7 @@ void PadMgr_RumbleControl(PadMgr* padMgr) {
|
|||||||
} else {
|
} else {
|
||||||
if (padMgr->rumbleCounter[i] != 0) {
|
if (padMgr->rumbleCounter[i] != 0) {
|
||||||
// clang-format off
|
// clang-format off
|
||||||
if (1) {} osSyncPrintf(VT_FGCOL(YELLOW));
|
osSyncPrintf(VT_FGCOL(YELLOW));
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|
||||||
// "Stop vibration pack"
|
// "Stop vibration pack"
|
||||||
|
@ -717,8 +717,7 @@ void UCodeDisas_Disassemble(UCodeDisas* this, GfxMod* ptr) {
|
|||||||
: "???";
|
: "???";
|
||||||
|
|
||||||
if ((setscissor.x0frac | setscissor.y0frac | setscissor.x1frac | setscissor.y1frac)) {
|
if ((setscissor.x0frac | setscissor.y0frac | setscissor.x1frac | setscissor.y1frac)) {
|
||||||
if (1) {}
|
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.x0 << 2) + setscissor.x0frac, (setscissor.y0 << 2) + setscissor.y0frac,
|
||||||
(setscissor.x1 << 2) + setscissor.x1frac, (setscissor.y1 << 2) + setscissor.y1frac);
|
(setscissor.x1 << 2) + setscissor.x1frac, (setscissor.y1 << 2) + setscissor.y1frac);
|
||||||
} else {
|
} else {
|
||||||
|
@ -5401,7 +5401,6 @@ s32 Camera_Unique9(Camera* camera) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
spB4 = scratchSph.r;
|
spB4 = scratchSph.r;
|
||||||
if (1) {}
|
|
||||||
scratchSph.r =
|
scratchSph.r =
|
||||||
!(spB4 < anim->curKeyFrame->eyeTargetInit.z)
|
!(spB4 < anim->curKeyFrame->eyeTargetInit.z)
|
||||||
? Camera_LERPCeilF(anim->curKeyFrame->eyeTargetInit.z, spB4, anim->curKeyFrame->lerpStepScale, 1.0f)
|
? Camera_LERPCeilF(anim->curKeyFrame->eyeTargetInit.z, spB4, anim->curKeyFrame->lerpStepScale, 1.0f)
|
||||||
|
@ -345,7 +345,6 @@ void EffectBlure_GetComputedValues(EffectBlure* this, s32 index, f32 ratio, Vec3
|
|||||||
|
|
||||||
vec1->x = (sp30.x * 0.5f * mode4Param * ratio) + elem->p1.x;
|
vec1->x = (sp30.x * 0.5f * mode4Param * ratio) + elem->p1.x;
|
||||||
vec1->y = (sp30.y * 0.5f * mode4Param * ratio) + elem->p1.y;
|
vec1->y = (sp30.y * 0.5f * mode4Param * ratio) + elem->p1.y;
|
||||||
if (1) {} // Necessary to match
|
|
||||||
vec1->z = (sp30.z * 0.5f * mode4Param * ratio) + elem->p1.z;
|
vec1->z = (sp30.z * 0.5f * mode4Param * ratio) + elem->p1.z;
|
||||||
|
|
||||||
vec2->x = -(sp30.x * 0.5f * mode4Param * ratio) + elem->p2.x;
|
vec2->x = -(sp30.x * 0.5f * mode4Param * ratio) + elem->p2.x;
|
||||||
@ -785,8 +784,6 @@ void EffectBlure_DrawSimpleVertices(GraphicsContext* gfxCtx, EffectBlure* this,
|
|||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (1) {} // Necessary to match
|
|
||||||
|
|
||||||
gSPVertex(POLY_XLU_DISP++, &vtx[j], 4, 0);
|
gSPVertex(POLY_XLU_DISP++, &vtx[j], 4, 0);
|
||||||
gSP2Triangles(POLY_XLU_DISP++, 0, 1, 3, 0, 0, 3, 2, 0);
|
gSP2Triangles(POLY_XLU_DISP++, 0, 1, 3, 0, 0, 3, 2, 0);
|
||||||
|
|
||||||
@ -1044,8 +1041,7 @@ void EffectBlure_Draw(void* thisx, GraphicsContext* gfxCtx) {
|
|||||||
} else {
|
} else {
|
||||||
gSP1Quadrangle(POLY_XLU_DISP++, j - 2, j - 1, j + 1, j, 0);
|
gSP1Quadrangle(POLY_XLU_DISP++, j - 2, j - 1, j + 1, j, 0);
|
||||||
|
|
||||||
if (1) {} // Necessary to match
|
|
||||||
|
|
||||||
if (this->unkFlag == 1) {
|
if (this->unkFlag == 1) {
|
||||||
phi_t2 = 0;
|
phi_t2 = 0;
|
||||||
}
|
}
|
||||||
|
@ -75,7 +75,6 @@ void GameOver_Update(GlobalContext* globalCtx) {
|
|||||||
|
|
||||||
Environment_InitGameOverLights(globalCtx);
|
Environment_InitGameOverLights(globalCtx);
|
||||||
gGameOverTimer = 20;
|
gGameOverTimer = 20;
|
||||||
if (1) {}
|
|
||||||
v90 = VREG(90);
|
v90 = VREG(90);
|
||||||
v91 = VREG(91);
|
v91 = VREG(91);
|
||||||
v92 = VREG(92);
|
v92 = VREG(92);
|
||||||
@ -109,7 +108,6 @@ void GameOver_Update(GlobalContext* globalCtx) {
|
|||||||
case GAMEOVER_REVIVE_RUMBLE:
|
case GAMEOVER_REVIVE_RUMBLE:
|
||||||
gGameOverTimer = 50;
|
gGameOverTimer = 50;
|
||||||
gameOverCtx->state++;
|
gameOverCtx->state++;
|
||||||
if (1) {}
|
|
||||||
|
|
||||||
v90 = VREG(90);
|
v90 = VREG(90);
|
||||||
v91 = VREG(91);
|
v91 = VREG(91);
|
||||||
|
@ -958,7 +958,6 @@ void Environment_Update(GlobalContext* globalCtx, EnvironmentContext* envCtx, Li
|
|||||||
gSPEndDisplayList(displayList++);
|
gSPEndDisplayList(displayList++);
|
||||||
Graph_BranchDlist(prevDisplayList, displayList);
|
Graph_BranchDlist(prevDisplayList, displayList);
|
||||||
POLY_OPA_DISP = displayList;
|
POLY_OPA_DISP = displayList;
|
||||||
if (1) {}
|
|
||||||
CLOSE_DISPS(globalCtx->state.gfxCtx);
|
CLOSE_DISPS(globalCtx->state.gfxCtx);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1547,7 +1546,6 @@ void Environment_DrawLensFlare(GlobalContext* globalCtx, EnvironmentContext* env
|
|||||||
|
|
||||||
alpha *= 1.0f - fogInfluence;
|
alpha *= 1.0f - fogInfluence;
|
||||||
|
|
||||||
if (1) {}
|
|
||||||
|
|
||||||
if (!(isOffScreen ^ 0)) {
|
if (!(isOffScreen ^ 0)) {
|
||||||
Math_SmoothStepToF(&envCtx->unk_88, unk88Target, 0.5f, 0.05f, 0.001f);
|
Math_SmoothStepToF(&envCtx->unk_88, unk88Target, 0.5f, 0.05f, 0.001f);
|
||||||
|
@ -120,8 +120,7 @@ void Lights_BindPoint(Lights* lights, LightParams* params, Vec3f* vec) {
|
|||||||
|
|
||||||
if (light != NULL) {
|
if (light != NULL) {
|
||||||
posDiff = sqrtf(posDiff);
|
posDiff = sqrtf(posDiff);
|
||||||
if (1) {}
|
scale = posDiff / scale;
|
||||||
scale = posDiff / scale;
|
|
||||||
scale = 1 - SQ(scale);
|
scale = 1 - SQ(scale);
|
||||||
|
|
||||||
light->l.col[0] = light->l.colc[0] = params->point.color[0] * scale;
|
light->l.col[0] = light->l.colc[0] = params->point.color[0] * scale;
|
||||||
@ -399,9 +398,7 @@ void Lights_GlowCheck(GlobalContext* globalCtx) {
|
|||||||
if ((multDest.z > 1.0f) && y >= shrink && y <= SCREEN_HEIGHT - shrink) {
|
if ((multDest.z > 1.0f) && y >= shrink && y <= SCREEN_HEIGHT - shrink) {
|
||||||
wZ = (s32)((multDest.z * wDest) * 16352.0f) + 16352;
|
wZ = (s32)((multDest.z * wDest) * 16352.0f) + 16352;
|
||||||
zBuf = OTRGetPixelDepth(x, y) * 4;
|
zBuf = OTRGetPixelDepth(x, y) * 4;
|
||||||
if (1) {}
|
|
||||||
if (1) {}
|
|
||||||
|
|
||||||
if (wZ < (zBuf >> 3)) {
|
if (wZ < (zBuf >> 3)) {
|
||||||
params->drawGlow = true;
|
params->drawGlow = true;
|
||||||
}
|
}
|
||||||
|
@ -876,7 +876,6 @@ void Map_Update(GlobalContext* globalCtx) {
|
|||||||
if (R_MAP_TEX_INDEX != (R_MAP_TEX_INDEX_BASE + Map_GetFloorTextIndexOffset(mapIndex, floor))) {
|
if (R_MAP_TEX_INDEX != (R_MAP_TEX_INDEX_BASE + Map_GetFloorTextIndexOffset(mapIndex, floor))) {
|
||||||
R_MAP_TEX_INDEX = R_MAP_TEX_INDEX_BASE + Map_GetFloorTextIndexOffset(mapIndex, floor);
|
R_MAP_TEX_INDEX = R_MAP_TEX_INDEX_BASE + Map_GetFloorTextIndexOffset(mapIndex, floor);
|
||||||
}
|
}
|
||||||
if (1) {} // Appears to be necessary to match
|
|
||||||
|
|
||||||
if (interfaceCtx->mapRoomNum != sLastRoomNum) {
|
if (interfaceCtx->mapRoomNum != sLastRoomNum) {
|
||||||
// "Current floor = %d Current room = %x Number of rooms = %d"
|
// "Current floor = %d Current room = %x Number of rooms = %d"
|
||||||
|
@ -2866,8 +2866,7 @@ void Message_DrawMain(GlobalContext* globalCtx, Gfx** p) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (1) {}
|
if (sOcarinaNotesAlphaValues[i] != 255) {
|
||||||
if (sOcarinaNotesAlphaValues[i] != 255) {
|
|
||||||
sOcarinaNotesAlphaValues[i] += VREG(50);
|
sOcarinaNotesAlphaValues[i] += VREG(50);
|
||||||
if (sOcarinaNotesAlphaValues[i] >= 255) {
|
if (sOcarinaNotesAlphaValues[i] >= 255) {
|
||||||
sOcarinaNotesAlphaValues[i] = 255;
|
sOcarinaNotesAlphaValues[i] = 255;
|
||||||
|
@ -998,8 +998,7 @@ void func_80083108(GlobalContext* globalCtx) {
|
|||||||
gSaveContext.buttonStatus[0] = gSaveContext.equips.buttonItems[0];
|
gSaveContext.buttonStatus[0] = gSaveContext.equips.buttonItems[0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (1) {} // Necessary to match
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (sp28) {
|
if (sp28) {
|
||||||
Interface_LoadItemIcon1(globalCtx, 0);
|
Interface_LoadItemIcon1(globalCtx, 0);
|
||||||
|
@ -118,8 +118,7 @@ void ArrowFire_Hit(ArrowFire* this, GlobalContext* globalCtx) {
|
|||||||
this->radius = (((1.0f - offset) * scale) + 10.0f);
|
this->radius = (((1.0f - offset) * scale) + 10.0f);
|
||||||
this->unk_158 += ((2.0f - this->unk_158) * 0.1f);
|
this->unk_158 += ((2.0f - this->unk_158) * 0.1f);
|
||||||
if (this->timer < 16) {
|
if (this->timer < 16) {
|
||||||
if (1) {}
|
this->alpha = ((this->timer * 0x23) - 0x118);
|
||||||
this->alpha = ((this->timer * 0x23) - 0x118);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -119,8 +119,7 @@ void ArrowIce_Hit(ArrowIce* this, GlobalContext* globalCtx) {
|
|||||||
this->radius = (((1.0f - offset) * scale) + 10.0f);
|
this->radius = (((1.0f - offset) * scale) + 10.0f);
|
||||||
this->unk_160 += ((2.0f - this->unk_160) * 0.1f);
|
this->unk_160 += ((2.0f - this->unk_160) * 0.1f);
|
||||||
if (this->timer < 16) {
|
if (this->timer < 16) {
|
||||||
if (1) {}
|
this->alpha = ((this->timer * 0x23) - 0x118);
|
||||||
this->alpha = ((this->timer * 0x23) - 0x118);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -118,8 +118,7 @@ void ArrowLight_Hit(ArrowLight* this, GlobalContext* globalCtx) {
|
|||||||
this->radius = (((1.0f - offset) * scale) + 10.0f);
|
this->radius = (((1.0f - offset) * scale) + 10.0f);
|
||||||
this->unk_160 += ((2.0f - this->unk_160) * 0.1f);
|
this->unk_160 += ((2.0f - this->unk_160) * 0.1f);
|
||||||
if (this->timer < 16) {
|
if (this->timer < 16) {
|
||||||
if (1) {}
|
this->alpha = ((this->timer * 0x23) - 0x118);
|
||||||
this->alpha = ((this->timer * 0x23) - 0x118);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -366,7 +366,6 @@ void func_8086C874(BgBdanObjects* this, GlobalContext* globalCtx) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this->switchFlag == 0) {
|
if (this->switchFlag == 0) {
|
||||||
if (1) {}
|
|
||||||
Camera_ChangeSetting(globalCtx->cameraPtrs[MAIN_CAM], this->cameraSetting);
|
Camera_ChangeSetting(globalCtx->cameraPtrs[MAIN_CAM], this->cameraSetting);
|
||||||
func_8005ACFC(globalCtx->cameraPtrs[MAIN_CAM], 4);
|
func_8005ACFC(globalCtx->cameraPtrs[MAIN_CAM], 4);
|
||||||
}
|
}
|
||||||
|
@ -306,7 +306,6 @@ void func_80888860(BgHidanHamstep* this, GlobalContext* globalCtx) {
|
|||||||
} else {
|
} else {
|
||||||
this->dyna.actor.velocity.y *= -0.24f;
|
this->dyna.actor.velocity.y *= -0.24f;
|
||||||
|
|
||||||
if (1) {}
|
|
||||||
|
|
||||||
if (this->unk_244 == 1) {
|
if (this->unk_244 == 1) {
|
||||||
quakeIndex = Quake_Add(GET_ACTIVE_CAM(globalCtx), 3);
|
quakeIndex = Quake_Add(GET_ACTIVE_CAM(globalCtx), 3);
|
||||||
@ -365,7 +364,6 @@ void func_80888A58(BgHidanHamstep* this, GlobalContext* globalCtx) {
|
|||||||
} else {
|
} else {
|
||||||
this->dyna.actor.velocity.y *= -0.24f;
|
this->dyna.actor.velocity.y *= -0.24f;
|
||||||
|
|
||||||
if (1) {}
|
|
||||||
|
|
||||||
if (this->unk_244 == 1) {
|
if (this->unk_244 == 1) {
|
||||||
quakeIndex = Quake_Add(GET_ACTIVE_CAM(globalCtx), 3);
|
quakeIndex = Quake_Add(GET_ACTIVE_CAM(globalCtx), 3);
|
||||||
|
@ -309,8 +309,7 @@ void BgJyaCobra_UpdateShadowFromSide(BgJyaCobra* this) {
|
|||||||
if (!(temp_x & ~0x3F)) {
|
if (!(temp_x & ~0x3F)) {
|
||||||
temp_s2[temp_z + temp_x] |= D_8089731C[k][l];
|
temp_s2[temp_z + temp_x] |= D_8089731C[k][l];
|
||||||
}
|
}
|
||||||
if (1) {}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -143,16 +143,14 @@ void BgMizuWater_Init(Actor* thisx, GlobalContext* globalCtx) {
|
|||||||
case 3:
|
case 3:
|
||||||
if (Flags_GetSwitch(globalCtx, this->switchFlag)) {
|
if (Flags_GetSwitch(globalCtx, this->switchFlag)) {
|
||||||
this->actor.world.pos.y = this->baseY + 110.0f;
|
this->actor.world.pos.y = this->baseY + 110.0f;
|
||||||
if (1) {}
|
this->targetY = this->actor.world.pos.y;
|
||||||
this->targetY = this->actor.world.pos.y;
|
|
||||||
}
|
}
|
||||||
waterBoxes[8].ySurface = this->actor.world.pos.y;
|
waterBoxes[8].ySurface = this->actor.world.pos.y;
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
if (Flags_GetSwitch(globalCtx, this->switchFlag)) {
|
if (Flags_GetSwitch(globalCtx, this->switchFlag)) {
|
||||||
this->actor.world.pos.y = this->baseY + 160.0f;
|
this->actor.world.pos.y = this->baseY + 160.0f;
|
||||||
if (1) {}
|
this->targetY = this->actor.world.pos.y;
|
||||||
this->targetY = this->actor.world.pos.y;
|
|
||||||
}
|
}
|
||||||
waterBoxes[16].ySurface = this->actor.world.pos.y;
|
waterBoxes[16].ySurface = this->actor.world.pos.y;
|
||||||
break;
|
break;
|
||||||
|
@ -418,8 +418,7 @@ void BossGanon_Init(Actor* thisx, GlobalContext* globalCtx2) {
|
|||||||
} else {
|
} else {
|
||||||
thisx->update = func_808E1EB4;
|
thisx->update = func_808E1EB4;
|
||||||
thisx->draw = func_808E229C;
|
thisx->draw = func_808E229C;
|
||||||
if (1) {}
|
thisx->speedXZ = 11.0f;
|
||||||
thisx->speedXZ = 11.0f;
|
|
||||||
|
|
||||||
if (thisx->params == 0xC8) {
|
if (thisx->params == 0xC8) {
|
||||||
this->timers[0] = 7;
|
this->timers[0] = 7;
|
||||||
|
@ -1411,8 +1411,7 @@ void BossMo_IntroCs(BossMo* this, GlobalContext* globalCtx) {
|
|||||||
this->cameraEyeVel.x = fabsf(this->cameraEye.x - 111.0f) * 0.1f;
|
this->cameraEyeVel.x = fabsf(this->cameraEye.x - 111.0f) * 0.1f;
|
||||||
this->cameraEyeVel.y = fabsf(this->cameraEye.y - 133.0f) * 0.1f;
|
this->cameraEyeVel.y = fabsf(this->cameraEye.y - 133.0f) * 0.1f;
|
||||||
this->cameraEyeVel.z = fabsf(this->cameraEye.z - -191.0f) * 0.1f;
|
this->cameraEyeVel.z = fabsf(this->cameraEye.z - -191.0f) * 0.1f;
|
||||||
if (1) {}
|
this->csState = MO_INTRO_FINISH;
|
||||||
this->csState = MO_INTRO_FINISH;
|
|
||||||
this->timers[2] = 110;
|
this->timers[2] = 110;
|
||||||
this->cameraNextEye.x = 111.0f;
|
this->cameraNextEye.x = 111.0f;
|
||||||
this->cameraNextEye.y = 133.0f;
|
this->cameraNextEye.y = 133.0f;
|
||||||
@ -1590,8 +1589,7 @@ void BossMo_DeathCs(BossMo* this, GlobalContext* globalCtx) {
|
|||||||
this->cameraSpeedMod = 0.0f;
|
this->cameraSpeedMod = 0.0f;
|
||||||
this->cameraAccel = 0.02f;
|
this->cameraAccel = 0.02f;
|
||||||
this->cameraNextAt.y = 320.0f;
|
this->cameraNextAt.y = 320.0f;
|
||||||
if (1) {}
|
this->timers[0] = 100;
|
||||||
this->timers[0] = 100;
|
|
||||||
sMorphaTent1->drawActor = true;
|
sMorphaTent1->drawActor = true;
|
||||||
sMorphaTent1->work[MO_TENT_ACTION_STATE] = MO_TENT_DEATH_3;
|
sMorphaTent1->work[MO_TENT_ACTION_STATE] = MO_TENT_DEATH_3;
|
||||||
sMorphaTent1->actor.shape.rot.x = 0;
|
sMorphaTent1->actor.shape.rot.x = 0;
|
||||||
|
@ -2708,8 +2708,7 @@ void BossTw_TwinrovaDeathCS(BossTw* this, GlobalContext* globalCtx) {
|
|||||||
BossTw_AddFlameEffect(globalCtx, &pos, &velocity, &accel, Rand_ZeroFloat(2.0f) + 5, 1);
|
BossTw_AddFlameEffect(globalCtx, &pos, &velocity, &accel, Rand_ZeroFloat(2.0f) + 5, 1);
|
||||||
|
|
||||||
// fake code needed to match, tricks the compiler into allocating more stack
|
// fake code needed to match, tricks the compiler into allocating more stack
|
||||||
if (1) {}
|
if (zero) {
|
||||||
if (zero) {
|
|
||||||
accel.x *= 2.0;
|
accel.x *= 2.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4314,8 +4313,7 @@ s32 BossTw_BlastShieldCheck(BossTw* this, GlobalContext* globalCtx) {
|
|||||||
} else {
|
} else {
|
||||||
if (sShieldFireCharge != 0) {
|
if (sShieldFireCharge != 0) {
|
||||||
sShieldFireCharge = 0;
|
sShieldFireCharge = 0;
|
||||||
if (1) {}
|
BossTw_AddShieldDeflectEffect(globalCtx, 10.0f, 0);
|
||||||
BossTw_AddShieldDeflectEffect(globalCtx, 10.0f, 0);
|
|
||||||
} else {
|
} else {
|
||||||
BossTw_AddShieldHitEffect(globalCtx, 10.0f, 0);
|
BossTw_AddShieldHitEffect(globalCtx, 10.0f, 0);
|
||||||
sShieldIceCharge++;
|
sShieldIceCharge++;
|
||||||
|
@ -3459,8 +3459,7 @@ void BossVa_UpdateEffects(GlobalContext* globalCtx) {
|
|||||||
} else if (effect->mode == GORE_FADING) {
|
} else if (effect->mode == GORE_FADING) {
|
||||||
if (effect->timer == 0) {
|
if (effect->timer == 0) {
|
||||||
effect->type = VA_NONE;
|
effect->type = VA_NONE;
|
||||||
if (1) {}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
Math_SmoothStepToF(&effect->scaleMod, 0.075f, 1.0f, 0.005f, 0.0f);
|
Math_SmoothStepToF(&effect->scaleMod, 0.075f, 1.0f, 0.005f, 0.0f);
|
||||||
@ -3501,8 +3500,7 @@ void BossVa_UpdateEffects(GlobalContext* globalCtx) {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (1) {}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1098,7 +1098,6 @@ void DemoEffect_UpdateLightEffect(DemoEffect* this, GlobalContext* globalCtx) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (globalCtx->sceneNum == SCENE_TOKINOMA && gSaveContext.sceneSetupIndex == 14) {
|
if (globalCtx->sceneNum == SCENE_TOKINOMA && gSaveContext.sceneSetupIndex == 14) {
|
||||||
if (1) {}
|
|
||||||
|
|
||||||
if (globalCtx->csCtx.npcActions[this->csActionId]->action == 2) {
|
if (globalCtx->csCtx.npcActions[this->csActionId]->action == 2) {
|
||||||
Audio_PlayActorSound2(&this->actor, NA_SE_EV_LIGHT_GATHER - SFX_FLAG);
|
Audio_PlayActorSound2(&this->actor, NA_SE_EV_LIGHT_GATHER - SFX_FLAG);
|
||||||
@ -1837,7 +1836,6 @@ void DemoEffect_DrawGodLgt(Actor* thisx, GlobalContext* globalCtx) {
|
|||||||
this->godLgt.rotation++;
|
this->godLgt.rotation++;
|
||||||
if (this->godLgt.rotation > 120) {
|
if (this->godLgt.rotation > 120) {
|
||||||
this->godLgt.rotation = 0;
|
this->godLgt.rotation = 0;
|
||||||
if (1) {}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Matrix_RotateZ((((s32)this->godLgt.rotation) * 3.0f) * (M_PI / 180.0f), MTXMODE_APPLY);
|
Matrix_RotateZ((((s32)this->godLgt.rotation) * 3.0f) * (M_PI / 180.0f), MTXMODE_APPLY);
|
||||||
|
@ -1297,8 +1297,7 @@ void EnBb_Draw(Actor* thisx, GlobalContext* globalCtx) {
|
|||||||
//! the above bugs mean unk_2A8 can be nonzero without damage effects ever having been set.
|
//! the above bugs mean unk_2A8 can be nonzero without damage effects ever having been set.
|
||||||
//! This routine will then increment colorFilterTimer, and on the next frame Actor_Draw will try
|
//! This routine will then increment colorFilterTimer, and on the next frame Actor_Draw will try
|
||||||
//! to draw the unset colorFilterParams. This causes a divide-by-zero error, crashing the game.
|
//! to draw the unset colorFilterParams. This causes a divide-by-zero error, crashing the game.
|
||||||
if (1) {}
|
this->fireIceTimer--;
|
||||||
this->fireIceTimer--;
|
|
||||||
if ((this->fireIceTimer % 4) == 0) {
|
if ((this->fireIceTimer % 4) == 0) {
|
||||||
Vec3f sp70;
|
Vec3f sp70;
|
||||||
s32 index = this->fireIceTimer >> 2;
|
s32 index = this->fireIceTimer >> 2;
|
||||||
|
@ -172,7 +172,6 @@ void EnBomChu_UpdateFloorPoly(EnBomChu* this, CollisionPoly* floorPoly, GlobalCo
|
|||||||
|
|
||||||
this->axisUp = normal;
|
this->axisUp = normal;
|
||||||
|
|
||||||
if (1) {}
|
|
||||||
|
|
||||||
// mf = (axisLeft | axisUp | axisForwards)
|
// mf = (axisLeft | axisUp | axisForwards)
|
||||||
|
|
||||||
|
@ -354,8 +354,7 @@ void EnBombf_Update(Actor* thisx, GlobalContext* globalCtx) {
|
|||||||
if ((thisx->speedXZ != 0.0f) && (thisx->bgCheckFlags & 8)) {
|
if ((thisx->speedXZ != 0.0f) && (thisx->bgCheckFlags & 8)) {
|
||||||
|
|
||||||
if (ABS((s16)(thisx->wallYaw - thisx->world.rot.y)) > 0x4000) {
|
if (ABS((s16)(thisx->wallYaw - thisx->world.rot.y)) > 0x4000) {
|
||||||
if (1) {}
|
thisx->world.rot.y = ((thisx->wallYaw - thisx->world.rot.y) + thisx->wallYaw) - 0x8000;
|
||||||
thisx->world.rot.y = ((thisx->wallYaw - thisx->world.rot.y) + thisx->wallYaw) - 0x8000;
|
|
||||||
}
|
}
|
||||||
Audio_PlayActorSound2(thisx, NA_SE_EV_BOMB_BOUND);
|
Audio_PlayActorSound2(thisx, NA_SE_EV_BOMB_BOUND);
|
||||||
Actor_MoveForward(thisx);
|
Actor_MoveForward(thisx);
|
||||||
|
@ -339,7 +339,6 @@ void EnDoor_Draw(Actor* thisx, GlobalContext* globalCtx) {
|
|||||||
SkelAnime_DrawOpa(globalCtx, this->skelAnime.skeleton, this->skelAnime.jointTable, EnDoor_OverrideLimbDraw,
|
SkelAnime_DrawOpa(globalCtx, this->skelAnime.skeleton, this->skelAnime.jointTable, EnDoor_OverrideLimbDraw,
|
||||||
NULL, &this->actor);
|
NULL, &this->actor);
|
||||||
if (this->actor.world.rot.y != 0) {
|
if (this->actor.world.rot.y != 0) {
|
||||||
if (1) {}
|
|
||||||
if (this->actor.world.rot.y > 0) {
|
if (this->actor.world.rot.y > 0) {
|
||||||
gSPDisplayList(POLY_OPA_DISP++, gDoorRightDL);
|
gSPDisplayList(POLY_OPA_DISP++, gDoorRightDL);
|
||||||
} else {
|
} else {
|
||||||
|
@ -849,7 +849,6 @@ void func_80A03CF8(EnElf* this, GlobalContext* globalCtx) {
|
|||||||
EnElf_GetCutsceneNextPos(&nextPos, globalCtx, 8);
|
EnElf_GetCutsceneNextPos(&nextPos, globalCtx, 8);
|
||||||
|
|
||||||
if (globalCtx->csCtx.npcActions[8]->action == 5) {
|
if (globalCtx->csCtx.npcActions[8]->action == 5) {
|
||||||
if (1) {}
|
|
||||||
EnElf_SpawnSparkles(this, globalCtx, 16);
|
EnElf_SpawnSparkles(this, globalCtx, 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -863,7 +862,6 @@ void func_80A03CF8(EnElf* this, GlobalContext* globalCtx) {
|
|||||||
|
|
||||||
if ((globalCtx->sceneNum == SCENE_LINK_HOME) && (gSaveContext.sceneSetupIndex == 4)) {
|
if ((globalCtx->sceneNum == SCENE_LINK_HOME) && (gSaveContext.sceneSetupIndex == 4)) {
|
||||||
// play dash sound as Navi enters Links house in the intro
|
// play dash sound as Navi enters Links house in the intro
|
||||||
if (1) {}
|
|
||||||
if (globalCtx->csCtx.frames == 55) {
|
if (globalCtx->csCtx.frames == 55) {
|
||||||
Audio_PlayActorSound2(&this->actor, NA_SE_EV_FAIRY_DASH);
|
Audio_PlayActorSound2(&this->actor, NA_SE_EV_FAIRY_DASH);
|
||||||
}
|
}
|
||||||
|
@ -141,9 +141,7 @@ void EnEncount1_SpawnLeevers(EnEncount1* this, GlobalContext* globalCtx) {
|
|||||||
leever = (EnReeba*)Actor_SpawnAsChild(&globalCtx->actorCtx, &this->actor, globalCtx, ACTOR_EN_REEBA,
|
leever = (EnReeba*)Actor_SpawnAsChild(&globalCtx->actorCtx, &this->actor, globalCtx, ACTOR_EN_REEBA,
|
||||||
spawnPos.x, spawnPos.y, spawnPos.z, 0, 0, 0, spawnParams);
|
spawnPos.x, spawnPos.y, spawnPos.z, 0, 0, 0, spawnParams);
|
||||||
|
|
||||||
if (1) {}
|
if (leever != NULL) {
|
||||||
if (1) {}
|
|
||||||
if (leever != NULL) {
|
|
||||||
this->curNumSpawn++;
|
this->curNumSpawn++;
|
||||||
leever->unk_280 = this->leeverIndex++;
|
leever->unk_280 = this->leeverIndex++;
|
||||||
if (this->leeverIndex >= 5) {
|
if (this->leeverIndex >= 5) {
|
||||||
|
@ -282,8 +282,7 @@ void EnExRuppy_WaitInGame(EnExRuppy* this, GlobalContext* globalCtx) {
|
|||||||
if (divingGame->phase == ENDIVINGGAME_PHASE_ENDED) {
|
if (divingGame->phase == ENDIVINGGAME_PHASE_ENDED) {
|
||||||
this->timer = 20;
|
this->timer = 20;
|
||||||
this->actionFunc = EnExRuppy_Kill;
|
this->actionFunc = EnExRuppy_Kill;
|
||||||
if (1) {}
|
} else if (this->actor.xyzDistToPlayerSq < SQ(localConst)) {
|
||||||
} else if (this->actor.xyzDistToPlayerSq < SQ(localConst)) {
|
|
||||||
Rupees_ChangeBy(this->rupeeValue);
|
Rupees_ChangeBy(this->rupeeValue);
|
||||||
func_80078884(NA_SE_SY_GET_RUPY);
|
func_80078884(NA_SE_SY_GET_RUPY);
|
||||||
divingGame->grabbedRupeesCounter++;
|
divingGame->grabbedRupeesCounter++;
|
||||||
|
@ -929,7 +929,6 @@ void EnFd_DrawDots(EnFd* this, GlobalContext* globalCtx) {
|
|||||||
gDPSetPrimColor(POLY_XLU_DISP++, 0, 0, eff->color.r, eff->color.g, eff->color.b,
|
gDPSetPrimColor(POLY_XLU_DISP++, 0, 0, eff->color.r, eff->color.g, eff->color.b,
|
||||||
(u8)(eff->color.a * (this->fadeAlpha / 255.0f)));
|
(u8)(eff->color.a * (this->fadeAlpha / 255.0f)));
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
if (1) {}
|
|
||||||
Matrix_Translate(eff->pos.x, eff->pos.y, eff->pos.z, MTXMODE_NEW);
|
Matrix_Translate(eff->pos.x, eff->pos.y, eff->pos.z, MTXMODE_NEW);
|
||||||
Matrix_ReplaceRotation(&globalCtx->billboardMtxF);
|
Matrix_ReplaceRotation(&globalCtx->billboardMtxF);
|
||||||
Matrix_Scale(eff->scale, eff->scale, 1.0f, MTXMODE_APPLY);
|
Matrix_Scale(eff->scale, eff->scale, 1.0f, MTXMODE_APPLY);
|
||||||
|
@ -133,8 +133,7 @@ void EnGanonMant_Tear(EnGanonMant* this) {
|
|||||||
if ((0 <= tx && tx < MANT_TEX_WIDTH) && (0 <= ty && ty < MANT_TEX_HEIGHT)) {
|
if ((0 <= tx && tx < MANT_TEX_WIDTH) && (0 <= ty && ty < MANT_TEX_HEIGHT)) {
|
||||||
for (areaX = 0; areaX <= tearAreaSizes[i]; areaX++) {
|
for (areaX = 0; areaX <= tearAreaSizes[i]; areaX++) {
|
||||||
texIdx = 0;
|
texIdx = 0;
|
||||||
if (1) {}
|
for (areaY = 0; areaY <= tearAreaSizes[i]; areaY++) {
|
||||||
for (areaY = 0; areaY <= tearAreaSizes[i]; areaY++) {
|
|
||||||
texIdx = (s16)((s16)tx + ((s16)ty * MANT_TEX_WIDTH)) + ((s16)areaX + ((s16)areaY * MANT_TEX_WIDTH));
|
texIdx = (s16)((s16)tx + ((s16)ty * MANT_TEX_WIDTH)) + ((s16)areaX + ((s16)areaY * MANT_TEX_WIDTH));
|
||||||
if (texIdx < MANT_TEX_WIDTH * MANT_TEX_HEIGHT) {
|
if (texIdx < MANT_TEX_WIDTH * MANT_TEX_HEIGHT) {
|
||||||
((u16*)gMantTexProper)[texIdx] = 0;
|
((u16*)gMantTexProper)[texIdx] = 0;
|
||||||
|
@ -1159,7 +1159,6 @@ void EnGo_AddDust(EnGo* this, Vec3f* pos, Vec3f* velocity, Vec3f* accel, u8 init
|
|||||||
if (dustEffect->type != 1) {
|
if (dustEffect->type != 1) {
|
||||||
dustEffect->scale = scale;
|
dustEffect->scale = scale;
|
||||||
dustEffect->scaleStep = scaleStep;
|
dustEffect->scaleStep = scaleStep;
|
||||||
if (1) {}
|
|
||||||
timer = initialTimer;
|
timer = initialTimer;
|
||||||
dustEffect->timer = timer;
|
dustEffect->timer = timer;
|
||||||
dustEffect->type = 1;
|
dustEffect->type = 1;
|
||||||
|
@ -178,7 +178,6 @@ void EnGo2_AddDust(EnGo2* this, Vec3f* pos, Vec3f* velocity, Vec3f* accel, u8 in
|
|||||||
if (dustEffect->type != 1) {
|
if (dustEffect->type != 1) {
|
||||||
dustEffect->scale = scale;
|
dustEffect->scale = scale;
|
||||||
dustEffect->scaleStep = scaleStep;
|
dustEffect->scaleStep = scaleStep;
|
||||||
if (1) {}
|
|
||||||
timer = initialTimer;
|
timer = initialTimer;
|
||||||
dustEffect->timer = timer;
|
dustEffect->timer = timer;
|
||||||
dustEffect->type = 1;
|
dustEffect->type = 1;
|
||||||
|
@ -218,8 +218,7 @@ void func_80AAF3C0(EnMm2* this, GlobalContext* globalCtx) {
|
|||||||
break;
|
break;
|
||||||
};
|
};
|
||||||
if (this->unk_1F4 & 4) {
|
if (this->unk_1F4 & 4) {
|
||||||
if (1) {}
|
this->unk_1F4 &= ~4;
|
||||||
this->unk_1F4 &= ~4;
|
|
||||||
HIGH_SCORE(HS_MARATHON) += 1;
|
HIGH_SCORE(HS_MARATHON) += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -539,10 +539,6 @@ void func_80AB6570(EnNiw* this, GlobalContext* globalCtx) {
|
|||||||
posY += 20.0f;
|
posY += 20.0f;
|
||||||
}
|
}
|
||||||
if (posZ < 0.0f) {
|
if (posZ < 0.0f) {
|
||||||
if (1) {} // Required to match
|
|
||||||
if (1) {}
|
|
||||||
if (1) {}
|
|
||||||
if (1) {}
|
|
||||||
posZ -= 20.0f;
|
posZ -= 20.0f;
|
||||||
} else {
|
} else {
|
||||||
posZ += 20.0f;
|
posZ += 20.0f;
|
||||||
|
@ -532,7 +532,6 @@ void EnNiwLady_Update(Actor* thisx, GlobalContext* globalCtx) {
|
|||||||
}
|
}
|
||||||
Actor_UpdateBgCheckInfo(globalCtx, thisx, 20.0f, 20.0f, 60.0f, 0x1D);
|
Actor_UpdateBgCheckInfo(globalCtx, thisx, 20.0f, 20.0f, 60.0f, 0x1D);
|
||||||
Collider_UpdateCylinder(thisx, &this->collider);
|
Collider_UpdateCylinder(thisx, &this->collider);
|
||||||
if (1) {}
|
|
||||||
CollisionCheck_SetOC(globalCtx, &globalCtx->colChkCtx, &this->collider.base);
|
CollisionCheck_SetOC(globalCtx, &globalCtx->colChkCtx, &this->collider.base);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -291,7 +291,6 @@ void func_80AF95C4(EnSda* this, u8* shadowTexture, Player* player, GlobalContext
|
|||||||
Matrix_RotateX((sp178.x / 32768.0f) * M_PI, MTXMODE_APPLY);
|
Matrix_RotateX((sp178.x / 32768.0f) * M_PI, MTXMODE_APPLY);
|
||||||
for (i = 0; i < 22; i++) {
|
for (i = 0; i < 22; i++) {
|
||||||
Matrix_MultVec3f(&D_80AFA180[i], &sp188);
|
Matrix_MultVec3f(&D_80AFA180[i], &sp188);
|
||||||
if (1) {}
|
|
||||||
sp64[i].x = (((KREG(82) / 100.0f) + 4.0f) * sp188.x) + sp16C.x;
|
sp64[i].x = (((KREG(82) / 100.0f) + 4.0f) * sp188.x) + sp16C.x;
|
||||||
sp64[i].y = (((KREG(82) / 100.0f) + 4.0f) * sp188.y) + sp16C.y;
|
sp64[i].y = (((KREG(82) / 100.0f) + 4.0f) * sp188.y) + sp16C.y;
|
||||||
sp64[i].z = (((KREG(82) / 100.0f) + 4.0f) * sp188.z) + sp16C.z;
|
sp64[i].z = (((KREG(82) / 100.0f) + 4.0f) * sp188.z) + sp16C.z;
|
||||||
|
@ -143,8 +143,7 @@ void EnSyatekiItm_StartRound(EnSyatekiItm* this, GlobalContext* globalCtx) {
|
|||||||
i = Rand_ZeroFloat(5.99f);
|
i = Rand_ZeroFloat(5.99f);
|
||||||
while (this->roundFlags[i]) {
|
while (this->roundFlags[i]) {
|
||||||
i = Rand_ZeroFloat(5.99f);
|
i = Rand_ZeroFloat(5.99f);
|
||||||
if (1) {}
|
}
|
||||||
}
|
|
||||||
this->roundNum = i + 1;
|
this->roundNum = i + 1;
|
||||||
this->roundFlags[i] = true;
|
this->roundFlags[i] = true;
|
||||||
} else {
|
} else {
|
||||||
|
@ -879,7 +879,6 @@ void EnTite_CheckDamage(Actor* thisx, GlobalContext* globalCtx) {
|
|||||||
if (this->flipState == TEKTITE_FLIPPED) {
|
if (this->flipState == TEKTITE_FLIPPED) {
|
||||||
EnTite_SetupFlipUpright(this);
|
EnTite_SetupFlipUpright(this);
|
||||||
} else if ((this->action >= TEKTITE_IDLE) || (this->action >= TEKTITE_IDLE)) {
|
} else if ((this->action >= TEKTITE_IDLE) || (this->action >= TEKTITE_IDLE)) {
|
||||||
if (1) {}
|
|
||||||
EnTite_SetupFlipOnBack(this);
|
EnTite_SetupFlipOnBack(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1448,7 +1448,6 @@ void EnWf_Draw(Actor* thisx, GlobalContext* globalCtx) {
|
|||||||
|
|
||||||
if (this->fireTimer != 0) {
|
if (this->fireTimer != 0) {
|
||||||
this->actor.colorFilterTimer++;
|
this->actor.colorFilterTimer++;
|
||||||
if (1) {}
|
|
||||||
this->fireTimer--;
|
this->fireTimer--;
|
||||||
|
|
||||||
if ((this->fireTimer % 4) == 0) {
|
if ((this->fireTimer % 4) == 0) {
|
||||||
|
@ -2261,7 +2261,6 @@ void EnZf_Draw(Actor* thisx, GlobalContext* globalCtx) {
|
|||||||
EffectSsEnIce_SpawnFlyingVec3f(globalCtx, thisx, &this->bodyPartsPos[icePosIndex], 150, 150, 150, 250,
|
EffectSsEnIce_SpawnFlyingVec3f(globalCtx, thisx, &this->bodyPartsPos[icePosIndex], 150, 150, 150, 250,
|
||||||
235, 245, 255, 1.4f);
|
235, 245, 255, 1.4f);
|
||||||
}
|
}
|
||||||
if (1) {}
|
|
||||||
}
|
}
|
||||||
} else { // fades out when dead
|
} else { // fades out when dead
|
||||||
func_80093D84(globalCtx->state.gfxCtx);
|
func_80093D84(globalCtx->state.gfxCtx);
|
||||||
|
@ -187,8 +187,7 @@ void EnZo_DrawRipples(EnZo* this, GlobalContext* globalCtx) {
|
|||||||
if (effect->type == ENZO_EFFECT_RIPPLE) {
|
if (effect->type == ENZO_EFFECT_RIPPLE) {
|
||||||
FrameInterpolation_RecordOpenChild(effect, effect->epoch);
|
FrameInterpolation_RecordOpenChild(effect, effect->epoch);
|
||||||
if (!setup) {
|
if (!setup) {
|
||||||
if (1) {}
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
|
||||||
gSPDisplayList(POLY_XLU_DISP++, gZoraRipplesMaterialDL);
|
gSPDisplayList(POLY_XLU_DISP++, gZoraRipplesMaterialDL);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 155, 155, 155, 0);
|
gDPSetEnvColor(POLY_XLU_DISP++, 155, 155, 155, 0);
|
||||||
setup = true;
|
setup = true;
|
||||||
@ -219,8 +218,7 @@ void EnZo_DrawBubbles(EnZo* this, GlobalContext* globalCtx) {
|
|||||||
if (effect->type == ENZO_EFFECT_BUBBLE) {
|
if (effect->type == ENZO_EFFECT_BUBBLE) {
|
||||||
FrameInterpolation_RecordOpenChild(effect, effect->epoch);
|
FrameInterpolation_RecordOpenChild(effect, effect->epoch);
|
||||||
if (!setup) {
|
if (!setup) {
|
||||||
if (1) {}
|
gSPDisplayList(POLY_XLU_DISP++, gZoraBubblesMaterialDL);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, gZoraBubblesMaterialDL);
|
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 150, 150, 150, 0);
|
gDPSetEnvColor(POLY_XLU_DISP++, 150, 150, 150, 0);
|
||||||
gDPSetPrimColor(POLY_XLU_DISP++, 0, 0, 255, 255, 255, 255);
|
gDPSetPrimColor(POLY_XLU_DISP++, 0, 0, 255, 255, 255, 255);
|
||||||
@ -255,8 +253,7 @@ void EnZo_DrawSplashes(EnZo* this, GlobalContext* globalCtx) {
|
|||||||
if (effect->type == ENZO_EFFECT_SPLASH) {
|
if (effect->type == ENZO_EFFECT_SPLASH) {
|
||||||
FrameInterpolation_RecordOpenChild(effect, effect->epoch);
|
FrameInterpolation_RecordOpenChild(effect, effect->epoch);
|
||||||
if (!setup) {
|
if (!setup) {
|
||||||
if (1) {}
|
gSPDisplayList(POLY_XLU_DISP++, gZoraSplashesMaterialDL);
|
||||||
gSPDisplayList(POLY_XLU_DISP++, gZoraSplashesMaterialDL);
|
|
||||||
gDPPipeSync(POLY_XLU_DISP++);
|
gDPPipeSync(POLY_XLU_DISP++);
|
||||||
gDPSetEnvColor(POLY_XLU_DISP++, 200, 200, 200, 0);
|
gDPSetEnvColor(POLY_XLU_DISP++, 200, 200, 200, 0);
|
||||||
setup = true;
|
setup = true;
|
||||||
|
@ -3592,8 +3592,7 @@ void Fishing_UpdateFish(Actor* thisx, GlobalContext* globalCtx2) {
|
|||||||
if (D_80B7E124 == 0) {
|
if (D_80B7E124 == 0) {
|
||||||
if ((D_80B7FEA0 < 20) && ((D_80B7E0AE & 3) == 0)) {
|
if ((D_80B7FEA0 < 20) && ((D_80B7E0AE & 3) == 0)) {
|
||||||
D_80B7FEA0++;
|
D_80B7FEA0++;
|
||||||
if (1) {}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((D_80B7E122 != 0) && (D_80B7E124 == 0)) {
|
if ((D_80B7E122 != 0) && (D_80B7E124 == 0)) {
|
||||||
|
@ -440,11 +440,6 @@ void MirRay_ReflectedBeam(MirRay* this, GlobalContext* globalCtx, MirRayShieldRe
|
|||||||
|
|
||||||
currentReflection->mtx.zw = 0.0f;
|
currentReflection->mtx.zw = 0.0f;
|
||||||
|
|
||||||
if (1) {}
|
|
||||||
if (1) {}
|
|
||||||
if (1) {}
|
|
||||||
if (1) {} // All four required to match
|
|
||||||
|
|
||||||
currentReflection->mtx.xx = currentReflection->mtx.yy = currentReflection->mtx.zz =
|
currentReflection->mtx.xx = currentReflection->mtx.yy = currentReflection->mtx.zz =
|
||||||
currentReflection->mtx.ww = 1.0f;
|
currentReflection->mtx.ww = 1.0f;
|
||||||
currentReflection->mtx.yx = currentReflection->mtx.zx = currentReflection->mtx.wx =
|
currentReflection->mtx.yx = currentReflection->mtx.zx = currentReflection->mtx.wx =
|
||||||
|
@ -688,8 +688,6 @@ void ObjectKankyo_DrawSnow(ObjectKankyo* this2, GlobalContext* globalCtx2) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (1) {}
|
|
||||||
if (1) {}
|
|
||||||
Matrix_Translate(this->effects[i].base.x + this->effects[i].pos.x,
|
Matrix_Translate(this->effects[i].base.x + this->effects[i].pos.x,
|
||||||
this->effects[i].base.y + this->effects[i].pos.y,
|
this->effects[i].base.y + this->effects[i].pos.y,
|
||||||
this->effects[i].base.z + this->effects[i].pos.z, MTXMODE_NEW);
|
this->effects[i].base.z + this->effects[i].pos.z, MTXMODE_NEW);
|
||||||
|
@ -165,7 +165,6 @@ void ShotSun_UpdateHyliaSun(ShotSun* this, GlobalContext* globalCtx) {
|
|||||||
if (INV_CONTENT(ITEM_ARROW_FIRE) == ITEM_NONE) {
|
if (INV_CONTENT(ITEM_ARROW_FIRE) == ITEM_NONE) {
|
||||||
Actor_Spawn(&globalCtx->actorCtx, globalCtx, ACTOR_ITEM_ETCETERA, 700.0f, -800.0f, 7261.0f, 0, 0, 0, 7);
|
Actor_Spawn(&globalCtx->actorCtx, globalCtx, ACTOR_ITEM_ETCETERA, 700.0f, -800.0f, 7261.0f, 0, 0, 0, 7);
|
||||||
globalCtx->csCtx.segment = SEGMENTED_TO_VIRTUAL(gLakeHyliaFireArrowsCS);
|
globalCtx->csCtx.segment = SEGMENTED_TO_VIRTUAL(gLakeHyliaFireArrowsCS);
|
||||||
if (1) {}
|
|
||||||
gSaveContext.cutsceneTrigger = 1;
|
gSaveContext.cutsceneTrigger = 1;
|
||||||
} else {
|
} else {
|
||||||
spawnPos.x = 700.0f;
|
spawnPos.x = 700.0f;
|
||||||
|
@ -931,7 +931,6 @@ void FileChoose_EraseAnim1(GameState* thisx) {
|
|||||||
|
|
||||||
// probably a fake match, there should be a better chained assignment
|
// probably a fake match, there should be a better chained assignment
|
||||||
this->confirmButtonAlpha[0] = this->confirmButtonAlpha[1] = 0;
|
this->confirmButtonAlpha[0] = this->confirmButtonAlpha[1] = 0;
|
||||||
if (1) {}
|
|
||||||
this->fileInfoAlpha[this->selectedFileIndex] = this->nameBoxAlpha[this->selectedFileIndex] =
|
this->fileInfoAlpha[this->selectedFileIndex] = this->nameBoxAlpha[this->selectedFileIndex] =
|
||||||
this->confirmButtonAlpha[1];
|
this->confirmButtonAlpha[1];
|
||||||
|
|
||||||
|
@ -617,7 +617,6 @@ void KaleidoScope_DrawEquipment(GlobalContext* globalCtx) {
|
|||||||
|
|
||||||
if (LINK_AGE_IN_YEARS == YEARS_CHILD) {
|
if (LINK_AGE_IN_YEARS == YEARS_CHILD) {
|
||||||
point = CUR_UPG_VALUE(sChildUpgrades[i]);
|
point = CUR_UPG_VALUE(sChildUpgrades[i]);
|
||||||
if (1) {}
|
|
||||||
if ((point != 0) && (CUR_UPG_VALUE(sChildUpgrades[i]) != 0)) {
|
if ((point != 0) && (CUR_UPG_VALUE(sChildUpgrades[i]) != 0)) {
|
||||||
KaleidoScope_DrawQuadTextureRGBA32(globalCtx->state.gfxCtx,
|
KaleidoScope_DrawQuadTextureRGBA32(globalCtx->state.gfxCtx,
|
||||||
gItemIcons[sChildUpgradeItemBases[i] + point - 1], 32, 32, 0);
|
gItemIcons[sChildUpgradeItemBases[i] + point - 1], 32, 32, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user