mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fixed a bug i experienced in a up to date server
This commit is contained in:
parent
65bbd53009
commit
e06fd51ec1
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue