mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fixed the conditions where bad splitscreen player reads were occuring in P_EndingMusic.
Was only evident when someone joined and then left the 3p or 4p position of party, which is why we didn't discover it in testing.
This commit is contained in:
parent
af1177a92e
commit
1beee50942
1 changed files with 2 additions and 2 deletions
|
|
@ -730,8 +730,8 @@ boolean P_EndingMusic(player_t *player)
|
|||
|
||||
if (!((players[localplayertable[0]].exiting || (players[localplayertable[0]].pflags & PF_NOCONTEST))
|
||||
|| (players[localplayertable[1]].exiting || (players[localplayertable[1]].pflags & PF_NOCONTEST))
|
||||
|| ((r_splitscreen < 2) && (players[localplayertable[2]].exiting || (players[localplayertable[2]].pflags & PF_NOCONTEST)))
|
||||
|| ((r_splitscreen < 3) && (players[localplayertable[3]].exiting || (players[localplayertable[3]].pflags & PF_NOCONTEST)))))
|
||||
|| ((r_splitscreen > 1) && (players[localplayertable[2]].exiting || (players[localplayertable[2]].pflags & PF_NOCONTEST)))
|
||||
|| ((r_splitscreen > 2) && (players[localplayertable[3]].exiting || (players[localplayertable[3]].pflags & PF_NOCONTEST)))))
|
||||
return false;
|
||||
|
||||
bestlocalplayer = &players[localplayertable[0]];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue