// putting a global variable in the argument list means: // if an argument is passed for that parameter it gets // assigned to the global scope, not the scope of the function function Server::onClientDisconnect(%clientId) { Client::setControlObject(%clientId, -1); Client::leaveGame(%clientId); Game::CheckTourneyMatchStart(); //if(getNumClients() == 1) // this is the last client. // Server::refreshData(); }