Got_KickCmd: Only PROMOTE any regular kick to votekick if that player's the victim, don't downgrade a ban

This commit is contained in:
toaster 2023-06-27 17:30:43 +01:00
parent ddce2e9a2d
commit 34563ebecd

View file

@ -3255,7 +3255,11 @@ static void Got_KickCmd(UINT8 **p, INT32 playernum)
{
// Running the callback here would mean a very dumb infinite loop.
// We'll manually handle this here by changing the msg type.
msg = KICK_MSG_VOTE_KICK;
if (msg != KICK_MSG_BANNED && msg != KICK_MSG_CUSTOM_BAN)
{
// of course, don't take the teeth out of a ban
msg = KICK_MSG_VOTE_KICK;
}
K_MidVoteFinalize(FRACUNIT); // Vote succeeded, so the delay is normal.
}
else