mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-10-13 15:33:53 -04:00
Shuffle Scarecrow Song (#7205)
This commit is contained in:
@@ -2090,7 +2090,8 @@ void AudioOcarina_PlaybackSong(void) {
|
||||
}
|
||||
return;
|
||||
} else {
|
||||
sPlaybackNoteTimer -= nextNoteTimerStep;
|
||||
// SoH [Fix] several audio tasks can run between updates, don't wrap below zero
|
||||
sPlaybackNoteTimer -= MIN(nextNoteTimerStep, sPlaybackNoteTimer);
|
||||
}
|
||||
|
||||
// Update volume
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include "z_en_kakasi3.h"
|
||||
#include "vt.h"
|
||||
#include "objects/object_ka/object_ka.h"
|
||||
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
|
||||
|
||||
#define FLAGS (ACTOR_FLAG_ATTENTION_ENABLED | ACTOR_FLAG_FRIENDLY | ACTOR_FLAG_UPDATE_DURING_OCARINA)
|
||||
|
||||
@@ -387,7 +388,8 @@ void func_80A91A90(EnKakasi3* this, PlayState* play) {
|
||||
|
||||
if (this->dialogState == Message_GetState(&play->msgCtx) && Message_ShouldAdvance(play)) {
|
||||
if (this->unk_195) {
|
||||
if (!Flags_GetEventChkInf(EVENTCHKINF_PLAYED_SONG_FOR_SCARECROW_AS_ADULT)) {
|
||||
if (GameInteractor_Should(VB_GIVE_ITEM_FROM_SCARECROW,
|
||||
!Flags_GetEventChkInf(EVENTCHKINF_PLAYED_SONG_FOR_SCARECROW_AS_ADULT))) {
|
||||
Flags_SetEventChkInf(EVENTCHKINF_PLAYED_SONG_FOR_SCARECROW_AS_ADULT);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user