From 262f6c507ca59c75df52e23f93c701705ee22798 Mon Sep 17 00:00:00 2001 From: Roman971 <32455037+Roman971@users.noreply.github.com> Date: Thu, 16 Apr 2020 23:36:12 +0200 Subject: Decompile z_play.c and Match/Document some of z_view.c (#74) * Decompile z_play.c and Match/Document some of z_view.c Also fix the last non matching in z_sample.c and update some game state functions. * Suggestions from PR #74 * Fix undefined reference to Gameplay_DrawOverlay * Suggestion from PR #74 (2) * Fix a fake argument in func_800BC450 --- src/code/code_800ACE70.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src/code/code_800ACE70.c') diff --git a/src/code/code_800ACE70.c b/src/code/code_800ACE70.c index 31e93ad63..f62d54335 100644 --- a/src/code/code_800ACE70.c +++ b/src/code/code_800ACE70.c @@ -3,10 +3,7 @@ typedef struct { /* 0x00 */ u32 type; /* 0x04 */ u32 setScissor; - /* 0x08 */ union { - Color_RGBA8 c; - u32 rgba; - } color; + /* 0x08 */ Color_RGBA8 color; /* 0x0C */ u32 unk_0C; } struct_801664F0; @@ -60,10 +57,10 @@ Gfx D_8012AC58[] = { void func_800ACE70(struct_801664F0* this) { this->type = 0; this->setScissor = false; - this->color.c.r = 0xFF; - this->color.c.g = 0xFF; - this->color.c.b = 0xFF; - this->color.c.a = 0xFF; + this->color.r = 0xFF; + this->color.g = 0xFF; + this->color.b = 0xFF; + this->color.a = 0xFF; } // Destroy func -- cgit v1.2.3