MCPcopy Create free account
hub / github.com/ddnet/ddnet / GetAutoTeam

Method GetAutoTeam

src/game/server/gamecontroller.cpp:711–718  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

709}
710
711int IGameController::GetAutoTeam(int NotThisId)
712{
713 int Team = TEAM_GAME;
714
715 if(CanJoinTeam(Team, NotThisId, nullptr, 0))
716 return Team;
717 return TEAM_SPECTATORS;
718}
719
720bool IGameController::CanJoinTeam(int Team, int NotThisId, char *pErrorReason, int ErrorReasonSize)
721{

Callers 2

OnClientConnectedMethod · 0.80
TEST_FFunction · 0.80

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.64