public void UpdateMaxAuthCapacity() { BaseGameMode activeGameMode = BaseGameMode.GetActiveGameMode(true); if ((bool)activeGameMode && activeGameMode.limitTeamAuths) { SetFlag(Flags.Reserved5, authorizedPlayers.Count >= activeGameMode.GetMaxRelationshipTeamSize()); } }