From 50d3b8411589b647ba9818f0616f652b1fe91339 Mon Sep 17 00:00:00 2001 From: feacur Date: Mon, 11 Nov 2024 21:42:03 +0100 Subject: [PATCH] Document EnGo2 `.unk_216` as `.reverseWaypoint` --- src/overlays/actors/ovl_En_Go2/z_en_go2.c | 4 ++-- src/overlays/actors/ovl_En_Go2/z_en_go2.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/overlays/actors/ovl_En_Go2/z_en_go2.c b/src/overlays/actors/ovl_En_Go2/z_en_go2.c index 52b404f85f..da76a6dad6 100644 --- a/src/overlays/actors/ovl_En_Go2/z_en_go2.c +++ b/src/overlays/actors/ovl_En_Go2/z_en_go2.c @@ -1440,7 +1440,7 @@ s32 EnGo2_IsGoronFireGeneric(EnGo2* this) { } s32 EnGo2_IsGoronLinkReversing(EnGo2* this) { - if (PARAMS_GET_S(this->actor.params, 0, 5) != GORON_CITY_LINK || (this->waypoint >= this->unk_216) || + if (PARAMS_GET_S(this->actor.params, 0, 5) != GORON_CITY_LINK || (this->waypoint >= this->reverseWaypoint) || !EnGo2_IsWakingUp(this)) { return false; } @@ -1562,7 +1562,7 @@ void EnGo2_Init(Actor* thisx, PlayState* play) { this->isUncurled = false; this->goronState = 0; this->waypoint = 0; - this->unk_216 = this->actor.shape.rot.z; + this->reverseWaypoint = this->actor.shape.rot.z; this->trackingMode = NPC_TRACKING_NONE; this->path = Path_GetByIndex(play, PARAMS_GET_S(this->actor.params, 5, 5), 0x1F); switch (PARAMS_GET_S(this->actor.params, 0, 5)) { diff --git a/src/overlays/actors/ovl_En_Go2/z_en_go2.h b/src/overlays/actors/ovl_En_Go2/z_en_go2.h index d2f2012bfd..34f4091383 100644 --- a/src/overlays/actors/ovl_En_Go2/z_en_go2.h +++ b/src/overlays/actors/ovl_En_Go2/z_en_go2.h @@ -86,7 +86,7 @@ typedef struct EnGo2 { /* 0x0213 */ u8 eyeMouthTexState; // 0, 1, 2, 3 /* 0x0214 */ u8 eyeTexIndex; /* 0x0215 */ u8 mouthTexIndex; - /* 0x0216 */ u8 unk_216; // Set to z rotation, checked by waypoint + /* 0x0216 */ u8 reverseWaypoint; // Set to z rotation, checked by waypoint /* 0x0218 */ f32 interactRange; /* 0x021C */ char unk_21C[0x04]; /* 0x0220 */ f32