mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
make tee not transparent when playing demo from server
This commit is contained in:
parent
b5c931279f
commit
5dab6e2e1f
|
@ -2322,7 +2322,9 @@ bool CGameClient::IsOtherTeam(int ClientID)
|
|||
{
|
||||
bool Local = m_Snap.m_LocalClientID == ClientID;
|
||||
|
||||
if((m_aClients[m_Snap.m_LocalClientID].m_Team == TEAM_SPECTATORS && m_Snap.m_SpecInfo.m_SpectatorID == SPEC_FREEVIEW) || ClientID < 0)
|
||||
if(m_Snap.m_LocalClientID < 0)
|
||||
return false;
|
||||
else if((m_aClients[m_Snap.m_LocalClientID].m_Team == TEAM_SPECTATORS && m_Snap.m_SpecInfo.m_SpectatorID == SPEC_FREEVIEW) || ClientID < 0)
|
||||
return false;
|
||||
else if(m_Snap.m_SpecInfo.m_Active && m_Snap.m_SpecInfo.m_SpectatorID != SPEC_FREEVIEW)
|
||||
return m_Teams.Team(ClientID) != m_Teams.Team(m_Snap.m_SpecInfo.m_SpectatorID);
|
||||
|
|
Loading…
Reference in a new issue