mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-15 03:20:35 +00:00
Match retail demo actors (#1745)
* Match GetCue functions * Match retail demo actors * Add redundant parentheses around kREG(X) == Y in z_demo_gt.c * Remove goto in DemoEffect_DrawLightEffect * Rename "dl" * Comment on possible array * Use the word "fake" * Remove redundant return
This commit is contained in:
parent
5c3a722aca
commit
33d8044e45
18 changed files with 161 additions and 83 deletions
|
@ -58,12 +58,10 @@ void func_80991298(DemoShd* this, PlayState* play) {
|
|||
}
|
||||
|
||||
if (play->csCtx.state != CS_STATE_IDLE) {
|
||||
CsCmdActorCue* cue = play->csCtx.actorCues[0];
|
||||
|
||||
if (cue != NULL) {
|
||||
if (cue->id == 2) {
|
||||
if (play->csCtx.actorCues[0] != NULL) {
|
||||
if (play->csCtx.actorCues[0]->id == 2) {
|
||||
if (!(this->unk_14C & 1)) {
|
||||
this->unk_14E = cue->startPos.x;
|
||||
this->unk_14E = play->csCtx.actorCues[0]->startPos.x;
|
||||
}
|
||||
this->unk_14C |= 1;
|
||||
} else {
|
||||
|
@ -73,12 +71,10 @@ void func_80991298(DemoShd* this, PlayState* play) {
|
|||
}
|
||||
|
||||
if (play->csCtx.state != CS_STATE_IDLE) {
|
||||
CsCmdActorCue* cue = play->csCtx.actorCues[1];
|
||||
|
||||
if (cue != NULL) {
|
||||
if (cue->id == 2) {
|
||||
if (play->csCtx.actorCues[1] != NULL) {
|
||||
if (play->csCtx.actorCues[1]->id == 2) {
|
||||
if (!(this->unk_14C & 2)) {
|
||||
this->unk_14E = cue->startPos.x;
|
||||
this->unk_14E = play->csCtx.actorCues[1]->startPos.x;
|
||||
}
|
||||
this->unk_14C |= 2;
|
||||
} else {
|
||||
|
@ -101,8 +97,6 @@ void DemoShd_Draw(Actor* thisx, PlayState* play) {
|
|||
s32 pad;
|
||||
u32 unk_14E = this->unk_14E;
|
||||
|
||||
if (1) {} // Necessary to match, can be anywhere in the function
|
||||
|
||||
OPEN_DISPS(play->state.gfxCtx, "../z_demo_shd.c", 726);
|
||||
|
||||
Gfx_SetupDL_25Xlu(play->state.gfxCtx);
|
||||
|
@ -123,5 +117,7 @@ void DemoShd_Draw(Actor* thisx, PlayState* play) {
|
|||
gSPDisplayList(POLY_XLU_DISP++, D_809934B8);
|
||||
}
|
||||
|
||||
if (1) {} // Necessary to match
|
||||
|
||||
CLOSE_DISPS(play->state.gfxCtx, "../z_demo_shd.c", 762);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue