mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-02-20 19:02:37 +00:00
P_RestoreMusic fix
This commit is contained in:
parent
7611f2c610
commit
7f996c6dfd
1 changed files with 3 additions and 2 deletions
|
@ -1165,12 +1165,13 @@ void P_RestoreMusic(player_t *player)
|
|||
S_SpeedMusic(1.0f);
|
||||
|
||||
// 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[thirddisplayplayer].exiting
|
||||
|| players[fourthdisplayplayer].exiting))
|
||||
S_ChangeMusicInternal("karwin", true);
|
||||
else if (splitscreen == 0 && player->exiting)
|
||||
else if (splitscreen == 0 && G_RaceGametype() && player->exiting)
|
||||
{
|
||||
if (player->kartstuff[k_position] == 1)
|
||||
S_ChangeMusicInternal("karwin", true);
|
||||
|
|
Loading…
Reference in a new issue