mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-21 06:21:16 +00:00
Split SaveContext
into sub-structs (#1393)
* Split SaveContext struct * run formatter * Remove temporary-until-split stuff in z_sram * . * run formatter
This commit is contained in:
parent
e272186b5f
commit
6e7a6d4181
107 changed files with 1819 additions and 1751 deletions
|
@ -544,7 +544,7 @@ void DemoKankyo_DrawRain(Actor* thisx, PlayState* play) {
|
|||
switch (this->unk_150[i].unk_22) {
|
||||
case 0:
|
||||
func_80989B54(thisx, play, i);
|
||||
if (gSaveContext.entranceIndex == ENTR_CUTSCENE_MAP_0) {
|
||||
if (gSaveContext.save.entranceIndex == ENTR_CUTSCENE_MAP_0) {
|
||||
this->unk_150[i].unk_0.y = Rand_ZeroOne() * 500.0f;
|
||||
} else {
|
||||
this->unk_150[i].unk_0.y = Rand_ZeroOne() * -500.0f;
|
||||
|
@ -553,16 +553,16 @@ void DemoKankyo_DrawRain(Actor* thisx, PlayState* play) {
|
|||
break;
|
||||
case 1:
|
||||
temp_f12_2 = play->view.eye.y + (dy / norm) * 150.0f;
|
||||
if (gSaveContext.entranceIndex == ENTR_CUTSCENE_MAP_0) {
|
||||
if (gSaveContext.save.entranceIndex == ENTR_CUTSCENE_MAP_0) {
|
||||
this->unk_150[i].unk_0.y -= this->unk_150[i].unk_18;
|
||||
} else {
|
||||
this->unk_150[i].unk_0.y += this->unk_150[i].unk_18;
|
||||
}
|
||||
if (gSaveContext.entranceIndex == ENTR_CUTSCENE_MAP_0) {
|
||||
if (gSaveContext.save.entranceIndex == ENTR_CUTSCENE_MAP_0) {
|
||||
if (this->unk_150[i].unk_C.y + this->unk_150[i].unk_0.y < temp_f12_2 - 300.0f) {
|
||||
this->unk_150[i].unk_22++;
|
||||
}
|
||||
} else if (gSaveContext.entranceIndex == ENTR_HYRULE_FIELD_0) {
|
||||
} else if (gSaveContext.save.entranceIndex == ENTR_HYRULE_FIELD_0) {
|
||||
if (temp_f12_2 + 300.0f < this->unk_150[i].unk_C.y + this->unk_150[i].unk_0.y) {
|
||||
this->unk_150[i].unk_22++;
|
||||
}
|
||||
|
@ -582,13 +582,13 @@ void DemoKankyo_DrawRain(Actor* thisx, PlayState* play) {
|
|||
this->unk_150[i].unk_C.y + this->unk_150[i].unk_0.y,
|
||||
this->unk_150[i].unk_C.z + this->unk_150[i].unk_0.z, MTXMODE_NEW);
|
||||
|
||||
if (gSaveContext.entranceIndex != ENTR_CUTSCENE_MAP_0) {
|
||||
if (gSaveContext.save.entranceIndex != ENTR_CUTSCENE_MAP_0) {
|
||||
Matrix_RotateX(M_PI, MTXMODE_APPLY);
|
||||
}
|
||||
|
||||
gDPPipeSync(POLY_XLU_DISP++);
|
||||
|
||||
if (gSaveContext.entranceIndex == ENTR_HYRULE_FIELD_0) {
|
||||
if (gSaveContext.save.entranceIndex == ENTR_HYRULE_FIELD_0) {
|
||||
gDPSetPrimColor(POLY_XLU_DISP++, 0, 0, 255, 255, 255, 255);
|
||||
gDPSetEnvColor(POLY_XLU_DISP++, 255, 255, 0, 255);
|
||||
} else {
|
||||
|
@ -777,7 +777,7 @@ void DemoKankyo_DrawWarpSparkles(Actor* thisx, PlayState* play) {
|
|||
f32 translateY;
|
||||
f32 translateZ;
|
||||
PosRot posRot;
|
||||
u8 linkAge = gSaveContext.linkAge;
|
||||
u8 linkAge = gSaveContext.save.linkAge;
|
||||
|
||||
OPEN_DISPS(play->state.gfxCtx, "../z_demo_kankyo.c", 1824);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue