mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Can't spectate yourself when /pause'd
This commit is contained in:
parent
c1c2c1575f
commit
cf81ef8ce6
|
@ -301,6 +301,9 @@ void CPlayer::Snap(int SnappingClient)
|
|||
pPlayerInfo->m_Score = abs(m_Score) * -1;
|
||||
pPlayerInfo->m_Team = (m_ClientVersion < VERSION_DDNET_OLD || m_Paused != PAUSE_PAUSED || m_ClientID != SnappingClient) && m_Paused < PAUSE_SPEC ? m_Team : TEAM_SPECTATORS;
|
||||
|
||||
if(m_ClientID == SnappingClient && m_Paused == PAUSE_PAUSED && m_ClientVersion < VERSION_DDNET_OLD)
|
||||
pPlayerInfo->m_Team = TEAM_SPECTATORS;
|
||||
|
||||
if(m_ClientID == SnappingClient && (m_Paused != PAUSE_PAUSED || m_ClientVersion >= VERSION_DDNET_OLD))
|
||||
pPlayerInfo->m_Local = 1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue