mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-10 00:34:32 +00:00
Director: skip splitscreen players when switching
This makes sure director only tries switching to players who aren't splitscreen players.
This commit is contained in:
parent
5f1e64d6d9
commit
9d8c2cd703
1 changed files with 13 additions and 1 deletions
|
|
@ -285,8 +285,20 @@ void K_UpdateDirector(void)
|
|||
|
||||
target = directorinfo.sortedplayers[targetposition];
|
||||
|
||||
// stop here since we're already viewing this player
|
||||
if (*displayplayerp == target)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
// if this is a splitscreen player, try next pair
|
||||
if (P_IsDisplayPlayer(&players[target]))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// if we're certain the back half of the pair is actually in this position, try to switch
|
||||
if (*displayplayerp != target && !players[target].positiondelay)
|
||||
if (!players[target].positiondelay)
|
||||
{
|
||||
K_DirectorSwitch(target, false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue