mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Allow to use pausevoted as normal pause
This commit is contained in:
parent
1f421ab00a
commit
aef7d76158
|
@ -311,10 +311,14 @@ void ToggleSpecPauseVoted(IConsole::IResult *pResult, void *pUserData, int Pause
|
|||
str_format(aBuf, sizeof(aBuf), "You are force-paused for %d seconds.", (PauseState - pServ->Tick()) / pServ->TickSpeed());
|
||||
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "spec", aBuf);
|
||||
}
|
||||
else if(!pSelf->m_VoteCloseTime || (!pSelf->m_VoteKick && !pSelf->m_VoteSpec) || (pPlayer->IsPaused() && pPlayer->m_SpectatorID == pSelf->m_VoteVictim) || pResult->m_ClientID == pSelf->m_VoteVictim)
|
||||
else if(-PauseState == PauseType)
|
||||
{
|
||||
pPlayer->Pause(CPlayer::PAUSE_NONE, false);
|
||||
}
|
||||
else if(!pSelf->m_VoteCloseTime || (!pSelf->m_VoteKick && !pSelf->m_VoteSpec) || (pPlayer->IsPaused() && pPlayer->m_SpectatorID == pSelf->m_VoteVictim) || pResult->m_ClientID == pSelf->m_VoteVictim)
|
||||
{
|
||||
pPlayer->Pause(PauseType, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
pPlayer->Pause(PauseType, false);
|
||||
|
|
Loading…
Reference in a new issue