P_RestoreMusic fix
This commit is contained in:
parent
7611f2c610
commit
7f996c6dfd
|
@ -1165,12 +1165,13 @@ void P_RestoreMusic(player_t *player)
|
||||||
S_SpeedMusic(1.0f);
|
S_SpeedMusic(1.0f);
|
||||||
|
|
||||||
// SRB2kart - We have some different powers than vanilla, some of which tweak the music.
|
// SRB2kart - We have some different powers than vanilla, some of which tweak the music.
|
||||||
if (splitscreen != 0 && (players[consoleplayer].exiting
|
if (splitscreen != 0 && G_RaceGametype()
|
||||||
|
&& (players[consoleplayer].exiting
|
||||||
|| players[secondarydisplayplayer].exiting
|
|| players[secondarydisplayplayer].exiting
|
||||||
|| players[thirddisplayplayer].exiting
|
|| players[thirddisplayplayer].exiting
|
||||||
|| players[fourthdisplayplayer].exiting))
|
|| players[fourthdisplayplayer].exiting))
|
||||||
S_ChangeMusicInternal("karwin", true);
|
S_ChangeMusicInternal("karwin", true);
|
||||||
else if (splitscreen == 0 && player->exiting)
|
else if (splitscreen == 0 && G_RaceGametype() && player->exiting)
|
||||||
{
|
{
|
||||||
if (player->kartstuff[k_position] == 1)
|
if (player->kartstuff[k_position] == 1)
|
||||||
S_ChangeMusicInternal("karwin", true);
|
S_ChangeMusicInternal("karwin", true);
|
||||||
|
|
Loading…
Reference in a new issue