mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
Show spectators the whole game
This commit is contained in:
parent
10a343d96b
commit
819c792f6c
|
@ -35,7 +35,7 @@ int CEntity::NetworkClipped(int SnappingClient)
|
|||
|
||||
int CEntity::NetworkClipped(int SnappingClient, vec2 CheckPos)
|
||||
{
|
||||
if(SnappingClient == -1)
|
||||
if(SnappingClient == -1 || GameServer()->m_apPlayers[SnappingClient]->GetTeam() == TEAM_SPECTATORS || GameServer()->m_apPlayers[SnappingClient]->m_Paused)
|
||||
return 0;
|
||||
|
||||
float dx = GameServer()->m_apPlayers[SnappingClient]->m_ViewPos.x-CheckPos.x;
|
||||
|
|
Loading…
Reference in a new issue