about summary refs log tree commit diff
path: root/src/game/server/player.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/server/player.cpp')
-rw-r--r--src/game/server/player.cpp35
1 files changed, 1 insertions, 34 deletions
diff --git a/src/game/server/player.cpp b/src/game/server/player.cpp
index 77aa9b38..4ea2a4a6 100644
--- a/src/game/server/player.cpp
+++ b/src/game/server/player.cpp
@@ -50,44 +50,11 @@ void CPlayer::Tick()
 	Server()->SetClientScore(m_ClientID, m_Score);
 	
 	/* begin zCatch*/
-	int num = 0, num_spec = 0, num_SpecExplicit = 0;
 	
 	if(m_Team == TEAM_SPECTATORS)
 		m_TicksSpec++;
 	else
-		m_TicksIngame++;	
-	
-	for(int i = 0; i < MAX_CLIENTS; i++)
-	{
-		if(GameServer()->m_apPlayers[i])
-		{
-			num++;
-			if(GameServer()->m_apPlayers[i]->m_Team == TEAM_SPECTATORS)
-				num_spec++;
-			if(GameServer()->m_apPlayers[i]->m_SpecExplicit == 1)
-			num_SpecExplicit++;
-		}
-	}
-	
-	if(num == 1)
-	{
-	//Do nothing
-	}
-	//solution for sv_allow_join == 0 and mapchange:
-	else if((g_Config.m_SvAllowJoin == 0) && (num_spec == num) && (num_spec != num_SpecExplicit))
-	{
-		GameServer()->m_pController->EndRound();
-	}
-	else if((num - num_spec == 1) && (num != num_spec) && (num - num_SpecExplicit != 1)) 
-	{
-		for(int i = 0; i < MAX_CLIENTS; i++)
-		{
-			if(GameServer()->m_apPlayers[i] && GameServer()->m_apPlayers[i]->m_Team != TEAM_SPECTATORS)
-				GameServer()->m_apPlayers[i]->m_Score += g_Config.m_SvBonus;
-			GameServer()->m_pController->EndRound();
-			break;
-		}
-	}
+		m_TicksIngame++;
 		
 	/* end zCatch*/