From c3253fe59fbc20b791467e21180ff18462e24791 Mon Sep 17 00:00:00 2001 From: briaguya Date: Sat, 6 Aug 2022 18:23:47 -0400 Subject: [PATCH] add comment explaining ocarina mode setting --- soh/src/overlays/actors/ovl_En_Cow/z_en_cow.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/soh/src/overlays/actors/ovl_En_Cow/z_en_cow.c b/soh/src/overlays/actors/ovl_En_Cow/z_en_cow.c index 5482348eb2..8e30bea286 100644 --- a/soh/src/overlays/actors/ovl_En_Cow/z_en_cow.c +++ b/soh/src/overlays/actors/ovl_En_Cow/z_en_cow.c @@ -366,9 +366,11 @@ void func_809DF96C(EnCow* this, GlobalContext* globalCtx) { // reward from this cow yet, give that, otherwise use the // vanilla cow behavior if (gSaveContext.n64ddFlag && - Randomizer_GetSettingValue(RSK_SHUFFLE_COWS) && - !EnCow_HasBeenMilked(this, globalCtx)) { + Randomizer_GetSettingValue(RSK_SHUFFLE_COWS) && + !EnCow_HasBeenMilked(this, globalCtx)) { EnCow_SetCowMilked(this, globalCtx); + // setting the ocarina mode here prevents intermittent issues + // with the item get not triggering until walking away globalCtx->msgCtx.ocarinaMode = OCARINA_MODE_00; this->actionFunc = EnCow_GivePlayerRandomizedItem; return;