From 02372ac0b01f18df49e79902f4a7a47575ba5451 Mon Sep 17 00:00:00 2001 From: Ravomavain Date: Sat, 31 Dec 2011 11:30:24 +0100 Subject: [PATCH] Don't allow kill if player is paused --- src/game/server/gamecontext.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index d8b9646a2..0b0d310d9 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -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);