mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Battle: fix viewpoint switching to eliminated player
This commit is contained in:
parent
db4e2e692b
commit
5ec2e156ab
2 changed files with 5 additions and 2 deletions
|
|
@ -1526,7 +1526,8 @@ boolean G_CouldView(INT32 playernum)
|
||||||
//
|
//
|
||||||
boolean G_CanView(INT32 playernum, UINT8 viewnum, boolean onlyactive)
|
boolean G_CanView(INT32 playernum, UINT8 viewnum, boolean onlyactive)
|
||||||
{
|
{
|
||||||
if (!playeringame[playernum] || players[playernum].spectator)
|
// PF_ELIMINATED: Battle Overtime Barrier killed this player
|
||||||
|
if (!playeringame[playernum] || players[playernum].spectator || (players[playernum].pflags & PF_ELIMINATED))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -112,7 +112,9 @@ struct DirectorInfo
|
||||||
}
|
}
|
||||||
|
|
||||||
// pair finished? try the next one
|
// pair finished? try the next one
|
||||||
if (players[playerstat[targetposition].sorted].exiting)
|
if (players[playerstat[targetposition].sorted].exiting ||
|
||||||
|
// Battle: player was killed by Overtime Barrier
|
||||||
|
(players[playerstat[targetposition].sorted].pflags & PF_ELIMINATED))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue