From df4900477db1c3d37dd36abb8826fa011382a5c8 Mon Sep 17 00:00:00 2001 From: feacur Date: Sun, 10 Nov 2024 13:19:13 +0100 Subject: [PATCH] Undocument eye textures as an enum i was wrong: `_Draw` function might not follow the eyes texture order it is its own thing, like `enum EnMdBlinking` or nothing at all, yeah --- src/overlays/actors/ovl_En_Md/z_en_md.c | 4 ++-- src/overlays/actors/ovl_En_Md/z_en_md.h | 9 --------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/overlays/actors/ovl_En_Md/z_en_md.c b/src/overlays/actors/ovl_En_Md/z_en_md.c index dbd0550f8c..3cfbe459bd 100644 --- a/src/overlays/actors/ovl_En_Md/z_en_md.c +++ b/src/overlays/actors/ovl_En_Md/z_en_md.c @@ -545,9 +545,9 @@ u8 EnMd_ShouldSpawn(EnMd* this, PlayState* play) { void EnMd_UpdateEyes(EnMd* this) { if (DECR(this->blinkTimer) == 0) { this->eyeTexIndex++; - if (this->eyeTexIndex > ENMD_EYE_CLOSED) { + if (this->eyeTexIndex > 0) { this->blinkTimer = Rand_S16Offset(30, 30); - this->eyeTexIndex = ENMD_EYE_OPEN; + this->eyeTexIndex = 2; } } } diff --git a/src/overlays/actors/ovl_En_Md/z_en_md.h b/src/overlays/actors/ovl_En_Md/z_en_md.h index d741321c78..f67e2d8121 100644 --- a/src/overlays/actors/ovl_En_Md/z_en_md.h +++ b/src/overlays/actors/ovl_En_Md/z_en_md.h @@ -27,15 +27,6 @@ typedef enum EnMdLimb { ENMD_LIMB_MAX } EnMdLimb; -typedef enum EnMdEye { - ENMD_EYE_OPEN, - ENMD_EYE_HALF, - ENMD_EYE_CLOSED, - ENMD_EYE_ANGRY, - ENMD_EYE_LOOKING_UP, - ENMD_EYE_MAX -} EnMdEye; - typedef void (*EnMdActionFunc)(struct EnMd*, PlayState*); typedef struct EnMd {