about summary refs log tree commit diff
path: root/src/game/server/gamecontext.cpp
diff options
context:
space:
mode:
authorTeetime <anton.tsoulos@yahoo.de>2011-10-14 00:16:18 +0200
committerTeetime <anton.tsoulos@yahoo.de>2011-10-14 00:16:18 +0200
commit74a5a7021597c4f752830171271aea36cb1ebcd7 (patch)
tree91fa65773da57ceb2b1c9f8aa7cdb5a30b54cd48 /src/game/server/gamecontext.cpp
parent274bf013ee6f320e3ce1066a07f3558e1ba6d0dd (diff)
downloadzcatch-74a5a7021597c4f752830171271aea36cb1ebcd7.tar.gz
zcatch-74a5a7021597c4f752830171271aea36cb1ebcd7.zip
removed sv_allow_join = 0
Diffstat (limited to 'src/game/server/gamecontext.cpp')
-rw-r--r--src/game/server/gamecontext.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp
index 0865cf08..85b352cd 100644
--- a/src/game/server/gamecontext.cpp
+++ b/src/game/server/gamecontext.cpp
@@ -529,13 +529,7 @@ void CGameContext::OnClientEnter(int ClientID)
 		if(num < 3)
 			m_pController->EndRound();
 		
-		if(g_Config.m_SvAllowJoin == 0)
-		{
-			m_apPlayers[ClientID]->m_CatchedBy = ZCATCH_JOINED_NEW;
-			m_apPlayers[ClientID]->m_SpecExplicit = 0;
-			StartTeam = (num < 3) ? m_pController->ClampTeam(1) : TEAM_SPECTATORS;
-		}
-		else if(g_Config.m_SvAllowJoin == 1)
+		if(g_Config.m_SvAllowJoin == 1)
 		{
 			m_apPlayers[ClientID]->m_CatchedBy = ZCATCH_NOT_CATCHED;
 			m_apPlayers[ClientID]->m_SpecExplicit = (num < 3) ? 0 : 1;
@@ -724,8 +718,6 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID)
 		else if(!str_comp("/follow 1", pMsg->m_pMessage))
 		{
 			pPlayer->m_PlayerWantToFollowCatcher = 1;
-			if(pPlayer->m_CatchedBy != ZCATCH_JOINED_NEW)	// prevent freezing of client on the latest pos when sv_allow_join == 0
-				pPlayer->m_SpectatorID = pPlayer->m_CatchedBy;
 			SendChatTarget(ClientID, "Follow of catcher enabled.");
 		}	
 		else if(!str_comp_num("/", pMsg->m_pMessage, 1))
@@ -943,10 +935,6 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID)
 					pPlayer->m_LastSetTeam = Server()->Tick();
 					pPlayer->SetTeam(pMsg->m_Team);
 				}
-				else if(pPlayer->m_CatchedBy == ZCATCH_JOINED_NEW)
-				{
-					SendChatTarget(ClientID, "You will join automatically when the next round starts.");
-				}
 			}
             /* end zCatch*/
 			else