Attempt to fix rare 'server player kick' bug
This commit is contained in:
1 parent
146a80e91c
commit
40a8554cc9
1 file changed
+7
@@ -4307,6 +4307,13 @@ static void Got_RemovePlayer(UINT8 **p, INT32 playernum)
|
||||
pnum = READUINT8(*p);
|
||||
reason = READUINT8(*p);
|
||||
|
||||
if (pnum == serverplayer)
|
||||
{
|
||||
CONS_Alert(CONS_WARNING, "Attempt to remove server player\n");
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
CL_RemovePlayer(pnum, reason);
|
||||
|
||||
#ifdef HAVE_DISCORDRPC
|
||||
|
||||
Reference in new issue
Block a user