mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-08 07:20:16 +00:00
document code_8008E6A0 (frame advance) (#737)
* OK * fixes * format * remove gotos, thanks petrie
This commit is contained in:
parent
7f3be6e37f
commit
187d2d1500
15 changed files with 71 additions and 78 deletions
|
@ -455,7 +455,7 @@ s32 func_80B4F45C(GlobalContext* globalCtx, s32 limbIndex, Gfx** dList, Vec3f* p
|
|||
Matrix_Translate(362.0f, -133.0f, 0.0f, MTXMODE_APPLY);
|
||||
Matrix_Get(&sp34);
|
||||
func_800D20CC(&sp34, &sp2C, 0);
|
||||
if (!func_800C0D28(globalCtx)) {
|
||||
if (!FrameAdvance_IsEnabled(globalCtx)) {
|
||||
func_80B4EE38(this, sp2C.y, 0);
|
||||
func_80B4F230(this, sp2C.x, 1);
|
||||
func_80B4EF64(this, sp2C.z, 2);
|
||||
|
@ -465,7 +465,7 @@ s32 func_80B4F45C(GlobalContext* globalCtx, s32 limbIndex, Gfx** dList, Vec3f* p
|
|||
Matrix_ToMtx(&sp74[0], "../z_en_zl2.c", 1056);
|
||||
Matrix_Get(&sp34);
|
||||
func_800D20CC(&sp34, &sp2C, 0);
|
||||
if (!func_800C0D28(globalCtx)) {
|
||||
if (!FrameAdvance_IsEnabled(globalCtx)) {
|
||||
func_80B4EE38(this, sp2C.y, 3);
|
||||
func_80B4F230(this, sp2C.x, 4);
|
||||
}
|
||||
|
@ -474,7 +474,7 @@ s32 func_80B4F45C(GlobalContext* globalCtx, s32 limbIndex, Gfx** dList, Vec3f* p
|
|||
Matrix_ToMtx(&sp74[1], "../z_en_zl2.c", 1100);
|
||||
Matrix_Get(&sp34);
|
||||
func_800D20CC(&sp34, &sp2C, 0);
|
||||
if (!func_800C0D28(globalCtx)) {
|
||||
if (!FrameAdvance_IsEnabled(globalCtx)) {
|
||||
func_80B4EE38(this, sp2C.y, 6);
|
||||
func_80B4F230(this, sp2C.x, 7);
|
||||
}
|
||||
|
@ -486,7 +486,7 @@ s32 func_80B4F45C(GlobalContext* globalCtx, s32 limbIndex, Gfx** dList, Vec3f* p
|
|||
Matrix_Translate(467.0f, 265.0f, 389.0f, MTXMODE_APPLY);
|
||||
Matrix_Get(&sp34);
|
||||
func_800D20CC(&sp34, &sp2C, 0);
|
||||
if (!func_800C0D28(globalCtx)) {
|
||||
if (!FrameAdvance_IsEnabled(globalCtx)) {
|
||||
func_80B4EE38(this, sp2C.y, 9);
|
||||
func_80B4F230(this, sp2C.x, 10);
|
||||
func_80B4EF64(this, sp2C.z, 11);
|
||||
|
@ -496,7 +496,7 @@ s32 func_80B4F45C(GlobalContext* globalCtx, s32 limbIndex, Gfx** dList, Vec3f* p
|
|||
Matrix_ToMtx(&sp74[3], "../z_en_zl2.c", 1145);
|
||||
Matrix_Get(&sp34);
|
||||
func_800D20CC(&sp34, &sp2C, 0);
|
||||
if (!func_800C0D28(globalCtx)) {
|
||||
if (!FrameAdvance_IsEnabled(globalCtx)) {
|
||||
func_80B4EE38(this, sp2C.y, 12);
|
||||
func_80B4F230(this, sp2C.x, 13);
|
||||
func_80B4EF64(this, sp2C.z, 14);
|
||||
|
@ -509,7 +509,7 @@ s32 func_80B4F45C(GlobalContext* globalCtx, s32 limbIndex, Gfx** dList, Vec3f* p
|
|||
Matrix_Translate(467.0f, 265.0f, -389.0f, MTXMODE_APPLY);
|
||||
Matrix_Get(&sp34);
|
||||
func_800D20CC(&sp34, &sp2C, 0);
|
||||
if (!func_800C0D28(globalCtx)) {
|
||||
if (!FrameAdvance_IsEnabled(globalCtx)) {
|
||||
func_80B4EE38(this, sp2C.y, 15);
|
||||
func_80B4F230(this, sp2C.x, 16);
|
||||
func_80B4EF64(this, sp2C.z, 17);
|
||||
|
@ -519,7 +519,7 @@ s32 func_80B4F45C(GlobalContext* globalCtx, s32 limbIndex, Gfx** dList, Vec3f* p
|
|||
Matrix_ToMtx(&sp74[5], "../z_en_zl2.c", 1189);
|
||||
Matrix_Get(&sp34);
|
||||
func_800D20CC(&sp34, &sp2C, 0);
|
||||
if (!func_800C0D28(globalCtx)) {
|
||||
if (!FrameAdvance_IsEnabled(globalCtx)) {
|
||||
func_80B4EE38(this, sp2C.y, 18);
|
||||
func_80B4F230(this, sp2C.x, 19);
|
||||
func_80B4EF64(this, sp2C.z, 20);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue