about summary refs log tree commit diff
path: root/src/game/server
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2011-06-19 11:28:39 +0200
committeroy <Tom_Adams@web.de>2011-06-19 11:28:39 +0200
commit957b81af0726d89d820e26750d85849745cd2c9c (patch)
tree2174103c57a5b51b1659b77bd12c53263d6b42e3 /src/game/server
parent601509fe8afc2962e2b74b39fcfcee40b84ebfa8 (diff)
downloadzcatch-957b81af0726d89d820e26750d85849745cd2c9c.tar.gz
zcatch-957b81af0726d89d820e26750d85849745cd2c9c.zip
made it possible to restrict player information in spectator mode
Diffstat (limited to 'src/game/server')
-rw-r--r--src/game/server/entities/character.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/server/entities/character.cpp b/src/game/server/entities/character.cpp
index d1e1e8eb..c89e24d0 100644
--- a/src/game/server/entities/character.cpp
+++ b/src/game/server/entities/character.cpp
@@ -837,7 +837,8 @@ void CCharacter::Snap(int SnappingClient)
 
 	pCharacter->m_Direction = m_Input.m_Direction;
 
-	if(m_pPlayer->GetCID() == SnappingClient || SnappingClient == -1 || m_pPlayer->GetCID() == GameServer()->m_apPlayers[SnappingClient]->m_SpectatorID)
+	if(m_pPlayer->GetCID() == SnappingClient || SnappingClient == -1 ||
+		(!g_Config.m_SvStrictSpectateMode && m_pPlayer->GetCID() == GameServer()->m_apPlayers[SnappingClient]->m_SpectatorID))
 	{
 		pCharacter->m_Health = m_Health;
 		pCharacter->m_Armor = m_Armor;