mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
automatically kick k-client (#2912)
This commit is contained in:
parent
1b26312e3c
commit
78040b31e5
|
@ -1023,6 +1023,12 @@ void CGameContext::OnClientDirectInput(int ClientID, void *pInput)
|
|||
{
|
||||
m_TeeHistorian.RecordPlayerInput(ClientID, (CNetObj_PlayerInput *)pInput);
|
||||
}
|
||||
|
||||
int Flags = ((CNetObj_PlayerInput *)pInput)->m_PlayerFlags;
|
||||
if((Flags & 256) || (Flags & 512))
|
||||
{
|
||||
Server()->Kick(ClientID, "please update your client or use DDNet client");
|
||||
}
|
||||
}
|
||||
|
||||
void CGameContext::OnClientPredictedInput(int ClientID, void *pInput)
|
||||
|
|
Loading…
Reference in a new issue