Attempt to fix server locking up when trying to kick player that has left already
This commit is contained in:
1 parent
0acfc96812
commit
a132db9e6e
1 file changed
+1
-1
+1
-1
@@ -4003,7 +4003,7 @@ static void Got_KickCmd(const UINT8 **p, INT32 playernum)
|
||||
}
|
||||
|
||||
// without this the server will remove itself and thus self destruct on dedicated
|
||||
if (server && (playernode[pnum] == UINT8_MAX || !nodeingame[playernode[pnum]]))
|
||||
if (server && !playeringame[pnum])
|
||||
{
|
||||
CONS_Alert(CONS_WARNING, M_GetText("Attempting to kick player %d which is not in game received from %s\n"), pnum, player_names[playernum]);
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user