serverflags |= SERVERFLAG_TEAMPLAY;
teamplay = 1;
cvar_set("teamplay", "2"); // DP needs this for sending proper getstatus replies.
+ Team_InitTeams();
GameRules_spawning_teams(true);
} else {
serverflags &= ~SERVERFLAG_TEAMPLAY;
entity g_team_entities[NUM_TEAMS]; ///< Holds global team entities.
-STATIC_INIT(g_team_entities)
+void Team_InitTeams()
{
for (int i = 0; i < NUM_TEAMS; ++i)
{
// ========================== Global teams API ================================
+void Team_InitTeams();
+
/// \brief Returns the global team entity at the given index.
/// \param[in] index Index of the team.
/// \return Global team entity at the given index.