mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-21 04:51:45 +00:00
Fixed P_RestoreMusic using displayplayers instead of local players (did not use any of the functions directly and so was missed).
This commit is contained in:
parent
03a47cfb5a
commit
913610b1b7
1 changed files with 5 additions and 4 deletions
|
|
@ -813,6 +813,7 @@ void P_RestoreMusic(player_t *player)
|
|||
if (r_splitscreen)
|
||||
{
|
||||
INT32 bestlocaltimer = 1;
|
||||
INT32 *localplayertable = (splitscreen_partied[consoleplayer] ? splitscreen_party[consoleplayer] : g_localplayers);
|
||||
|
||||
#define setbests(p) \
|
||||
if (players[p].playerstate == PST_LIVE) \
|
||||
|
|
@ -822,12 +823,12 @@ void P_RestoreMusic(player_t *player)
|
|||
else if (players[p].growshrinktimer > bestlocaltimer) \
|
||||
{ wantedmus = 2; bestlocaltimer = players[p].growshrinktimer; } \
|
||||
}
|
||||
setbests(displayplayers[0]);
|
||||
setbests(displayplayers[1]);
|
||||
setbests(localplayertable[0]);
|
||||
setbests(localplayertable[1]);
|
||||
if (r_splitscreen > 1)
|
||||
setbests(displayplayers[2]);
|
||||
setbests(localplayertable[2]);
|
||||
if (r_splitscreen > 2)
|
||||
setbests(displayplayers[3]);
|
||||
setbests(localplayertable[3]);
|
||||
#undef setbests
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue