Fixed a bug i experienced in a up to date server

This commit is contained in:
Learath2 2012-03-07 19:51:30 +02:00
parent 65bbd53009
commit e06fd51ec1

View file

@ -328,6 +328,12 @@ void CGameContext::ConTogglePause(IConsole::IResult *pResult, void *pUserData)
if (!pPlayer)
return;
if (pPlayer->m_Paused == CPlayer::PAUSED_SPEC && g_Config.m_SvPauseable)
{
ConToggleSpec(pResult, pUserData);
return;
}
if (pPlayer->m_Paused == CPlayer::PAUSED_FORCE)
{
str_format(aBuf, sizeof(aBuf), "You are force-paused. %ds left.", pPlayer->m_ForcePauseTime/pSelf->Server()->TickSpeed());