mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fix #4956
if the snapshots are in a different order than predicted SPEC_FREEVIEW was forced although a different ID is desired in NETOBJTYPE_SPECTATORINFO.
This commit is contained in:
parent
0e003f54ee
commit
97d2de7af8
|
@ -1234,7 +1234,6 @@ void CGameClient::OnNewSnapshot()
|
|||
if(pInfo->m_Team == TEAM_SPECTATORS)
|
||||
{
|
||||
m_Snap.m_SpecInfo.m_Active = true;
|
||||
m_Snap.m_SpecInfo.m_SpectatorID = SPEC_FREEVIEW;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1263,7 +1262,6 @@ void CGameClient::OnNewSnapshot()
|
|||
if(Item.m_ID == m_Snap.m_LocalClientID && (m_aClients[Item.m_ID].m_Paused || m_aClients[Item.m_ID].m_Spec))
|
||||
{
|
||||
m_Snap.m_SpecInfo.m_Active = true;
|
||||
m_Snap.m_SpecInfo.m_SpectatorID = SPEC_FREEVIEW;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue