Skip to content

Instantly share code, notes, and snippets.

@gerich-home
Created July 5, 2010 20:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gerich-home/464657 to your computer and use it in GitHub Desktop.
Save gerich-home/464657 to your computer and use it in GitHub Desktop.
//Line 513
void CGameContext::OnClientConnected(int ClientId)
{
int Num = 0, NumPrev, LeaderId;
// Check which team the player should be on
if(m_pController->IsZCatch())
{
for(int i = 0; i < MAX_CLIENTS; i++)
{
if(m_apPlayers[i])
{
Num++;
}
}
if(Num < 3) //Connecting to empty server restars game
//When you are connecting to server with 1 player the same thing happens
{
m_pController->EndRound();
}
// ...
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment