Fix player removal not being recorded in netreplays. (Will not work with existing replays that lack this data)

This commit is contained in:
toaster 2021-11-29 19:41:11 +00:00
parent 3141ca0221
commit 4b42f99ca7

View file

@ -2390,6 +2390,7 @@ void CL_RemovePlayer(INT32 playernum, kickreason_t reason)
// remove avatar of player
playeringame[playernum] = false;
demo_extradata[playernum] |= DXD_PLAYSTATE;
playernode[playernum] = UINT8_MAX;
while (!playeringame[doomcom->numslots-1] && doomcom->numslots > 1)
doomcom->numslots--;