From 3b844375b799eb80e49a7b17fd80207fb886ef54 Mon Sep 17 00:00:00 2001 From: aMannus Date: Tue, 6 Sep 2022 11:27:26 +0200 Subject: [PATCH] Add missing pendingFlags (#1414) --- soh/src/code/z_play.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/soh/src/code/z_play.c b/soh/src/code/z_play.c index f831bc830..3d536e9f3 100644 --- a/soh/src/code/z_play.c +++ b/soh/src/code/z_play.c @@ -218,7 +218,8 @@ void GivePlayerRandoRewardNocturne(GlobalContext* globalCtx, RandomizerCheck che !Player_InBlockingCsMode(globalCtx, player) && !Flags_GetEventChkInf(0xAA)) { GetItemEntry getItemEntry = Randomizer_GetItemFromKnownCheck(check, RG_NOCTURNE_OF_SHADOW); GiveItemEntryWithoutActor(globalCtx, getItemEntry); - Flags_SetEventChkInf(0xAA); + player->pendingFlag.flagID = 0xAA; + player->pendingFlag.flagType = FLAG_EVENT_CHECK_INF; } } @@ -230,7 +231,8 @@ void GivePlayerRandoRewardRequiem(GlobalContext* globalCtx, RandomizerCheck chec !Player_InBlockingCsMode(globalCtx, player)) { GetItemEntry getItemEntry = Randomizer_GetItemFromKnownCheck(check, RG_SONG_OF_TIME); GiveItemEntryWithoutActor(globalCtx, getItemEntry); - Flags_SetEventChkInf(0xAC); + player->pendingFlag.flagID = 0xAC; + player->pendingFlag.flagType = FLAG_EVENT_CHECK_INF; } } }