1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-02-22 14:55:39 +00:00

streamline EnGo *_Draw function into 3 sections

returns are indeed required to match
This commit is contained in:
feacur 2024-11-10 20:25:45 +01:00
parent 8784c81a3d
commit 46a13d52f5

View file

@ -1145,12 +1145,17 @@ void EnGo_Draw(Actor* thisx, PlayState* play) {
if (this->actionFunc == EnGo_CurledUp) {
EnGo_DrawCurledUp(this, play);
return; // needed for match?
} else if (this->actionFunc == EnGo_GoronLinkRolling || this->actionFunc == func_80A3FEB4 ||
return;
}
if (this->actionFunc == EnGo_GoronLinkRolling || this->actionFunc == func_80A3FEB4 ||
this->actionFunc == EnGo_StopRolling || this->actionFunc == func_80A3FEB4) {
EnGo_DrawRolling(this, play);
return; // needed for match?
} else {
return;
}
// draw normal
{
Gfx_SetupDL_37Opa(play->state.gfxCtx);
gSPSegment(POLY_OPA_DISP++, 0x08, SEGMENTED_TO_VIRTUAL(gGoronCsEyeOpenTex));