mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Let director focus 1P if no more players are in game
This commit is contained in:
parent
5fe55f54a1
commit
14e89d3f42
1 changed files with 8 additions and 1 deletions
|
|
@ -238,6 +238,13 @@ void K_UpdateDirector(void)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// if there's only one player left in the list, just switch to that player
|
||||||
|
if (directorinfo.sortedplayers[0] != -1 && directorinfo.sortedplayers[1] == -1)
|
||||||
|
{
|
||||||
|
K_DirectorSwitch(directorinfo.sortedplayers[0], false);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// aaight, time to walk through the standings to find the first interesting pair
|
// aaight, time to walk through the standings to find the first interesting pair
|
||||||
// NB: targetposition/sortedplayers is 0-indexed, aiming at the "back half" of a given pair by default.
|
// NB: targetposition/sortedplayers is 0-indexed, aiming at the "back half" of a given pair by default.
|
||||||
// we adjust for this when comparing to player->position or when looking at the leading player, Don't Freak Out
|
// we adjust for this when comparing to player->position or when looking at the leading player, Don't Freak Out
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue