mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Improved pause fix (thanks to heinrich5991)
This commit is contained in:
parent
e9807fe47c
commit
819ae338d8
|
@ -472,11 +472,8 @@ void CGameContext::StartVote(const char *pDesc, const char *pCommand, const char
|
|||
|
||||
void CGameContext::EndVote()
|
||||
{
|
||||
if(m_apPlayers[m_VoteVictim])
|
||||
m_apPlayers[m_VoteVictim]->Pause(CPlayer::PAUSE_NONE, false);
|
||||
m_VoteCloseTime = 0;
|
||||
SendVoteSet(-1);
|
||||
m_VoteVictim = -1;
|
||||
}
|
||||
|
||||
void CGameContext::SendVoteSet(int ClientID)
|
||||
|
@ -2236,6 +2233,7 @@ void CGameContext::ConSetTeam(IConsole::IResult *pResult, void *pUserData)
|
|||
str_format(aBuf, sizeof(aBuf), "moved client %d to team %d", ClientID, Team);
|
||||
pSelf->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "server", aBuf);
|
||||
|
||||
pSelf->m_apPlayers[ClientID]->Pause(CPlayer::PAUSE_NONE, false); // reset /spec and /pause to allow rejoin
|
||||
pSelf->m_apPlayers[ClientID]->m_TeamChangeTick = pSelf->Server()->Tick()+pSelf->Server()->TickSpeed()*Delay*60;
|
||||
pSelf->m_apPlayers[ClientID]->SetTeam(Team);
|
||||
if(Team == TEAM_SPECTATORS)
|
||||
|
|
Loading…
Reference in a new issue