From 819c792f6cd9230708c7260b1b9517580a7f36f3 Mon Sep 17 00:00:00 2001 From: def Date: Thu, 1 Aug 2013 16:03:07 +0200 Subject: [PATCH] Show spectators the whole game --- src/game/server/entity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/server/entity.cpp b/src/game/server/entity.cpp index 788c3f45b..3c293e15c 100644 --- a/src/game/server/entity.cpp +++ b/src/game/server/entity.cpp @@ -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;