Show spectators the whole game

This commit is contained in:
def 2013-08-01 16:03:07 +02:00
parent 10a343d96b
commit 819c792f6c

View file

@ -35,7 +35,7 @@ int CEntity::NetworkClipped(int SnappingClient)
int CEntity::NetworkClipped(int SnappingClient, vec2 CheckPos) 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; return 0;
float dx = GameServer()->m_apPlayers[SnappingClient]->m_ViewPos.x-CheckPos.x; float dx = GameServer()->m_apPlayers[SnappingClient]->m_ViewPos.x-CheckPos.x;