Created
July 5, 2010 20:25
-
-
Save gerich-home/464657 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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