Don't allow kill if player is paused

This commit is contained in:
Ravomavain 2011-12-31 11:30:24 +01:00 committed by GreYFoX
parent c85d7bcc0f
commit 02372ac0b0

View file

@ -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);