1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-08-21 14:31:17 +00:00

improve matching (#1543)

This commit is contained in:
engineer124 2023-09-21 00:54:44 +10:00 committed by GitHub
parent a8d670fe5c
commit 72334df180
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 114 additions and 101 deletions

View file

@ -215,14 +215,15 @@ void func_80AAF3C0(EnMm2* this, PlayState* play) {
Message_ContinueTextbox(play, 0x6080);
this->actor.textId = 0x6080;
break;
};
}
if (this->unk_1F4 & 4) {
if (1) {}
this->unk_1F4 &= ~4;
HIGH_SCORE(HS_MARATHON)++;
}
}
return;
break;
case 0x6081:
if ((Message_GetState(&play->msgCtx) == TEXT_STATE_EVENT) && Message_ShouldAdvance(play)) {
this->unk_1F4 |= 4;
@ -230,18 +231,20 @@ void func_80AAF3C0(EnMm2* this, PlayState* play) {
Message_ContinueTextbox(play, 0x607E);
this->actor.textId = 0x607E;
}
return;
}
break;
if (Actor_TextboxIsClosing(&this->actor, play)) {
if (this->actor.textId == 0x607F) {
Interface_SetSubTimer(0);
this->actionFunc = func_80AAF57C;
} else {
this->actionFunc = func_80AAF57C;
}
this->actionFunc = func_80AAF57C;
func_80AAEF70(this, play);
default:
if (Actor_TextboxIsClosing(&this->actor, play)) {
if (this->actor.textId == 0x607F) {
Interface_SetSubTimer(0);
this->actionFunc = func_80AAF57C;
} else {
this->actionFunc = func_80AAF57C;
}
this->actionFunc = func_80AAF57C;
func_80AAEF70(this, play);
}
break;
}
}