Invert behaviour in modeattacking

This commit is contained in:
toaster 2024-03-06 20:09:34 +00:00
parent 2385913d9d
commit abc48d7546

View file

@ -8210,12 +8210,17 @@ void P_ResetLevelMusic(void)
if (tempmapmus_size > 1)
{
if (g_reloadingMap)
if (g_reloadingMap == (modeattacking == ATTACKING_NONE))
{
// If restarting the map, simply cycle
// through available alt music.
idx = (mapmusrng + 1) % tempmapmus_size;
}
else if (modeattacking)
{
// Short circuit the cycle.
idx = mapmusrng % tempmapmus_size;
}
else
{
idx = random % tempmapmus_size;