Merge branch 'supermusic-state-fix' into 'next'

Fix super theme ending early if invincibility expired

See merge request STJr/SRB2!559
This commit is contained in:
MascaraSnake 2019-12-22 17:37:32 -05:00
commit 63cf9d61fc

View file

@ -1600,7 +1600,7 @@ void P_RestoreMusic(player_t *player)
P_PlayJingle(player, JT_SUPER);
// Invulnerability
else if (player->powers[pw_invulnerability] > 1)
else if (player->powers[pw_invulnerability] > 1 && !player->powers[pw_super])
{
strlcpy(S_sfx[sfx_None].caption, "Invincibility", 14);
S_StartCaption(sfx_None, -1, player->powers[pw_invulnerability]);