mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-21 14:31:17 +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
|
@ -98,7 +98,7 @@ void EnBox_Init(Actor* thisx, PlayState* play2) {
|
|||
f32 endFrame;
|
||||
|
||||
animFrameStart = 0.0f;
|
||||
anim = sAnimations[((void)0, gSaveContext.linkAge)];
|
||||
anim = sAnimations[((void)0, gSaveContext.save.linkAge)];
|
||||
colHeader = NULL;
|
||||
endFrame = Animation_GetLastFrame(anim);
|
||||
Actor_ProcessInitChain(&this->dyna.actor, sInitChain);
|
||||
|
@ -397,7 +397,7 @@ void EnBox_WaitOpen(EnBox* this, PlayState* play) {
|
|||
this->alpha = 255;
|
||||
this->movementFlags |= ENBOX_MOVE_IMMOBILE;
|
||||
if (this->unk_1F4 != 0) { // unk_1F4 is modified by player code
|
||||
linkAge = gSaveContext.linkAge;
|
||||
linkAge = gSaveContext.save.linkAge;
|
||||
anim = sAnimations[(this->unk_1F4 < 0 ? 2 : 0) + linkAge];
|
||||
frameCount = Animation_GetLastFrame(anim);
|
||||
Animation_Change(&this->skelanime, anim, 1.5f, 0, frameCount, ANIMMODE_ONCE, 0.0f);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue