mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Don't allow kill if player is paused
This commit is contained in:
parent
c85d7bcc0f
commit
02372ac0b0
|
@ -1334,6 +1334,8 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID)
|
|||
}
|
||||
if(pPlayer->m_LastKill && pPlayer->m_LastKill+Server()->TickSpeed()*g_Config.m_SvKillDelay > Server()->Tick())
|
||||
return;
|
||||
if(pPlayer->m_Paused)
|
||||
return;
|
||||
|
||||
pPlayer->m_LastKill = Server()->Tick();
|
||||
pPlayer->KillCharacter(WEAPON_SELF);
|
||||
|
|
Loading…
Reference in a new issue