mirror of
https://github.com/zeldaret/oot.git
synced 2025-02-22 06:45:31 +00:00
streamline EnGo *_Draw
function into 3 sections
returns are indeed required to match
This commit is contained in:
parent
8784c81a3d
commit
46a13d52f5
1 changed files with 10 additions and 5 deletions
|
@ -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 ||
|
||||
this->actionFunc == EnGo_StopRolling || 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));
|
||||
|
|
Loading…
Add table
Reference in a new issue