IL_EACH(g_dompoints, true,
{
++total_control_points;
+ if (!Entity_HasValidTeam(it.goalentity))
+ {
+ continue;
+ }
entity team_ = Entity_GetTeam(it.goalentity);
- //TODO: team_ seems to be NULL
int num_control_points = Team_GetNumberOfControlPoints(team_);
++num_control_points;
Team_SetNumberOfControlPoints(team_, num_control_points);
/// \brief Returns the team entity of the given entity.
/// \param[in] this Entity to check.
-/// \return Team entity of the given entity.
+/// \return Team entity of the given entity or NULL if the entity doesn't belong
+/// to any team.
entity Entity_GetTeam(entity this);
void SetPlayerColors(entity player, float _color);