Play and don't reset nonsynced level music in TA

Fixes KartKrew/Kart#1064
This commit is contained in:
Eidolon 2024-02-24 18:07:57 -06:00
parent 3c63b84299
commit 217f19158f
2 changed files with 13 additions and 2 deletions

View file

@ -8210,7 +8210,7 @@ void P_LoadLevelMusic(void)
{
const char *music = mapheaderinfo[gamemap-1]->musname[mapmusrng];
if (gametyperules & GTR_NOPOSITION)
if (gametyperules & GTR_NOPOSITION || modeattacking != ATTACKING_NONE)
{
if (!stricmp(Music_Song("level_nosync"), music))
{

View file

@ -1039,7 +1039,18 @@ void P_Ticker(boolean run)
}
// POSITION!! music
P_StartPositionMusic(true); // exact times only
if (modeattacking == ATTACKING_NONE)
{
P_StartPositionMusic(true); // exact times only
}
}
}
if (modeattacking != ATTACKING_NONE)
{
if (leveltime == 4 && !Music_Playing("level_nosync"))
{
Music_Play("level_nosync");
}
}