return WINNING_NEVER;
entity winner_squad = NULL;
- IL_EACH(squads, !it.br_squad_dead, winner_squad = it);
+ IL_EACH(squads, !it.br_squad_dead, { winner_squad = it; break; });
for(entity member = winner_squad.br_squad_first; member; member = member.br_squad_next)
{
GameRules_scoring_add(member, BR_RANK, 1);
+ member.winning = true;
}
delete(round_handler);
GameLogClose();
int winner_team = 0;
+ int winner_squad = 0;
FOREACH_CLIENT(IS_PLAYER(it) || INGAME(it), {
FixIntermissionClient(it);
if(it.winning)
winner_team = it.team;
bprint(Team_ColorCode(winner_team), Team_ColorName_Upper(winner_team), "^7 team wins the match\n");
}
+ if(IS_GAMETYPE(BR) && !winner_squad)
+ {
+ winner_squad = it.br_squad.br_squad_id;
+ bprint("squad ", ftos(winner_squad), " wins the match\n");
+ }
bprint(playername(it.netname, it.team, false), " ^7wins\n");
}
});