mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-12 09:50:50 +00:00
proposal for link age macros (#1119)
* proposal for link age macros * apply @Dragorn421 suggestions * also annotate the slinkage variable
This commit is contained in:
parent
621b91e2b6
commit
82cedcc3ef
12 changed files with 64 additions and 60 deletions
|
@ -9,7 +9,7 @@
|
|||
void Opening_SetupTitleScreen(OpeningContext* this) {
|
||||
gSaveContext.gameMode = 1;
|
||||
this->state.running = false;
|
||||
gSaveContext.linkAge = 0;
|
||||
gSaveContext.linkAge = LINK_AGE_ADULT;
|
||||
Sram_InitDebugSave();
|
||||
gSaveContext.cutsceneIndex = 0xFFF3;
|
||||
gSaveContext.sceneSetupIndex = 7;
|
||||
|
|
|
@ -311,9 +311,9 @@ void Select_UpdateMenu(SelectContext* this) {
|
|||
|
||||
if (CHECK_BTN_ALL(input->press.button, BTN_B)) {
|
||||
if (LINK_AGE_IN_YEARS == YEARS_ADULT) {
|
||||
gSaveContext.linkAge = 1;
|
||||
gSaveContext.linkAge = LINK_AGE_CHILD;
|
||||
} else {
|
||||
gSaveContext.linkAge = 0;
|
||||
gSaveContext.linkAge = LINK_AGE_ADULT;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -754,5 +754,5 @@ void Select_Init(GameState* thisx) {
|
|||
this->staticSegment = GameState_Alloc(&this->state, size, "../z_select.c", 1114);
|
||||
DmaMgr_SendRequest1(this->staticSegment, _z_select_staticSegmentRomStart, size, "../z_select.c", 1115);
|
||||
gSaveContext.cutsceneIndex = 0x8000;
|
||||
gSaveContext.linkAge = 1;
|
||||
gSaveContext.linkAge = LINK_AGE_CHILD;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue