mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-22 06:52:03 +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
|
@ -124,7 +124,7 @@ void EnMs_Talk(EnMs* this, PlayState* play) {
|
|||
} else if (Message_ShouldAdvance(play)) {
|
||||
switch (play->msgCtx.choiceIndex) {
|
||||
case 0: // yes
|
||||
if (gSaveContext.rupees < sPrices[BEANS_BOUGHT]) {
|
||||
if (gSaveContext.save.info.playerData.rupees < sPrices[BEANS_BOUGHT]) {
|
||||
Message_ContinueTextbox(play, 0x4069); // not enough rupees text
|
||||
return;
|
||||
}
|
||||
|
@ -168,7 +168,7 @@ void EnMs_Update(Actor* thisx, PlayState* play) {
|
|||
SkelAnime_Update(&this->skelAnime);
|
||||
this->actionFunc(this, play);
|
||||
|
||||
if (gSaveContext.entranceIndex == ENTR_LON_LON_RANCH_0 &&
|
||||
if (gSaveContext.save.entranceIndex == ENTR_LON_LON_RANCH_0 &&
|
||||
gSaveContext.sceneLayer == 8) { // ride carpet if in credits
|
||||
Actor_MoveXZGravity(&this->actor);
|
||||
osSyncPrintf("OOOHHHHHH %f\n", this->actor.velocity.y);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue