mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-28 16:31:15 +00:00
Play and don't reset nonsynced level music in TA
Fixes KartKrew/Kart#1064
This commit is contained in:
parent
3c63b84299
commit
217f19158f
2 changed files with 13 additions and 2 deletions
|
|
@ -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))
|
||||
{
|
||||
|
|
|
|||
13
src/p_tick.c
13
src/p_tick.c
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue