Revert "Show everyone entire game"

This reverts commit 987efe8604.
This commit is contained in:
def 2013-12-24 23:54:53 +01:00
parent bb46b6acbf
commit 033df0da7c

View file

@ -35,6 +35,17 @@ int CEntity::NetworkClipped(int SnappingClient)
int CEntity::NetworkClipped(int SnappingClient, vec2 CheckPos)
{
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;
float dy = GameServer()->m_apPlayers[SnappingClient]->m_ViewPos.y-CheckPos.y;
if(absolute(dx) > 1000.0f || absolute(dy) > 800.0f)
return 1;
if(distance(GameServer()->m_apPlayers[SnappingClient]->m_ViewPos, CheckPos) > 1100.0f)
return 1;
return 0;
}