Warp Song Check

-Now if you do not have a warp song you won't be able to select the empty slot and still teleport.
This commit is contained in:
mckinlee 2023-09-18 16:07:22 -04:00
parent ee0d0b0929
commit 5bf4230b4d

View File

@ -81,6 +81,11 @@ void PauseWarp_Main() {
// If 'A' is pressed and the cooldowns are zero, and we're not already warping, initiate the warp
if (aButtonPressed && !state.aButtonCooldown && !(state.warpInitiated || state.textboxInitiated || state.inChoosingState)) {
int song = play->pauseCtx.cursorPoint[PAUSE_QUEST];
// Check if the player has the selected warp song
if (!CHECK_QUEST_ITEM(song)) return;
// Initiate warp if the song is within the valid range
if (song >= QUEST_SONG_MINUET && song <= QUEST_SONG_PRELUDE) InitiateWarp(play, player, song, &state);
}