mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge #2552
2552: Flag afk when player timed-out r=def- a=ardadem Timed out players kills entire team especially on t0 maps. So i just thought we can flag them as afk. Co-authored-by: Arda Demir <ddmirarda@gmail.com>
This commit is contained in:
commit
62a2271253
|
@ -220,6 +220,8 @@ void CPlayer::Tick()
|
|||
|
||||
if(Server()->GetNetErrorString(m_ClientID)[0])
|
||||
{
|
||||
m_Afk = true;
|
||||
|
||||
char aBuf[512];
|
||||
str_format(aBuf, sizeof(aBuf), "'%s' would have timed out, but can use timeout protection now", Server()->ClientName(m_ClientID));
|
||||
GameServer()->SendChat(-1, CGameContext::CHAT_ALL, aBuf);
|
||||
|
|
Loading…
Reference in a new issue