mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Let viewpoints underwrap
This means that if you're currently viewing the first player in game and try to switch view to the player before them, it will wrap around and view the last player in game.
This commit is contained in:
parent
14e89d3f42
commit
7a67aa2f35
1 changed files with 1 additions and 1 deletions
|
|
@ -1964,7 +1964,7 @@ boolean G_CanView(INT32 playernum, UINT8 viewnum, boolean onlyactive)
|
|||
INT32 G_FindView(INT32 startview, UINT8 viewnum, boolean onlyactive, boolean reverse)
|
||||
{
|
||||
INT32 i, dir = reverse ? -1 : 1;
|
||||
startview = min(max(startview, 0), MAXPLAYERS);
|
||||
startview = min(max(startview, -1), MAXPLAYERS);
|
||||
for (i = startview; i < MAXPLAYERS && i >= 0; i += dir)
|
||||
{
|
||||
if (G_CanView(i, viewnum, onlyactive))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue