Skip to content

Commit ad6fb9d

Browse files
authored
Fix #2774 (#2902)
Prevents the function "kickPlayer" from kicking a player being redirected to another function.
1 parent 960a661 commit ad6fb9d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Server/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3463,6 +3463,7 @@ bool CStaticFunctionDefinitions::RedirectPlayer(CElement* pElement, const char*
34633463
BitStream.pBitStream->Write(ucPasswordLength);
34643464
BitStream.pBitStream->Write(szPassword, ucPasswordLength);
34653465
}
3466+
pPlayer->SetLeavingServer(true);
34663467
pPlayer->Send(CLuaPacket(FORCE_RECONNECT, *BitStream.pBitStream));
34673468

34683469
usPort = usPort ? usPort : g_pGame->GetConfig()->GetServerPort();

0 commit comments

Comments
 (0)