Battle: fix viewpoint switching to eliminated player

This commit is contained in:
James R 2024-01-13 15:15:28 -08:00
parent db4e2e692b
commit 5ec2e156ab
2 changed files with 5 additions and 2 deletions

View file

@ -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;
} }

View file

@ -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;
} }