Skip to content

Commit

Permalink
Skip warp song cutscenes in rando (#664)
Browse files Browse the repository at this point in the history
Does it by skipping to the last part of the cutscene data. Tested on all songs, both adult and child.
  • Loading branch information
aMannus authored Jul 14, 2022
1 parent 379649b commit f7db886
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion soh/src/overlays/actors/ovl_Demo_Kankyo/z_demo_kankyo.c
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,14 @@ void DemoKankyo_DrawWarpSparkles(Actor* thisx, GlobalContext* globalCtx) {
this->unk_150[i].unk_0.y = (s16)((Rand_ZeroOne() - 0.5f) * 16.0f * temp_f22);
this->unk_150[i].unk_0.z = (s16)((Rand_ZeroOne() - 0.5f) * 16.0f * temp_f22);
this->unk_150[i].unk_23 = 0;
this->unk_150[i].unk_22++;

// Skip the first part of warp song cutscenes in rando
if (gSaveContext.n64ddFlag && this->actor.params == DEMOKANKYO_WARP_OUT) {
this->unk_150[i].unk_22 = 2;
} else {
this->unk_150[i].unk_22++;
}

case 1:
if (this->actor.params == DEMOKANKYO_WARP_OUT) {
if (func_800BB2B4(&camPos, &sWarpRoll, &sWarpFoV, sWarpOutCameraPoints, &this->unk_150[i].unk_20,
Expand Down

0 comments on commit f7db886

Please sign in to comment.