mirror of https://github.com/tstellar/bygfoot.git
"Brazil improvements."
This commit is contained in:
parent
d07897f893
commit
cd8988544e
|
@ -24,8 +24,6 @@ callback_show_next_live_game(void)
|
|||
{
|
||||
gint i, j;
|
||||
|
||||
stat0 = STATUS_SHOW_LIVE_GAME;
|
||||
|
||||
for(i=0;i<ligs->len;i++)
|
||||
for(j=0;j<lig(i).fixtures->len;j++)
|
||||
if(g_array_index(lig(i).fixtures, Fixture, j).week_number == week &&
|
||||
|
|
|
@ -577,7 +577,8 @@ fixture_get_free_round(gint week_number, gint clid)
|
|||
|
||||
for(i=0;i<acps->len;i++)
|
||||
{
|
||||
if(acp(i)->id != clid)
|
||||
if(acp(i)->id != clid &&
|
||||
(acp(i)->group == -1 || acp(i)->group != cup_from_clid(clid)->group))
|
||||
for(j=0;j<acp(i)->fixtures->len;j++)
|
||||
if(g_array_index(acp(i)->fixtures, Fixture, j).week_number == week_number &&
|
||||
g_array_index(acp(i)->fixtures, Fixture, j).week_round_number == max_round + 1)
|
||||
|
|
|
@ -1019,7 +1019,7 @@ treeview_table_write_header(GtkListStore *ls, const Table *table, gint number)
|
|||
table->round).tables->len > 1)
|
||||
sprintf(buf, _("%s Group %d"), cup_from_clid(table->clid)->name->str, number);
|
||||
else
|
||||
sprintf(buf, _("%s"), cup_from_clid(table->clid)->name->str);
|
||||
sprintf(buf, "%s", cup_from_clid(table->clid)->name->str);
|
||||
}
|
||||
|
||||
gtk_list_store_append(ls, &iter);
|
||||
|
|
|
@ -427,7 +427,8 @@ treeview_helper_get_table_element_colour_cups(const League *league, gint idx, gc
|
|||
cup_round = &g_array_index(cp(i).rounds, CupRound, k);
|
||||
for(j=0;j<cup_round->choose_teams->len;j++)
|
||||
if(query_cup_is_international(cp(i).id) &&
|
||||
strcmp(g_array_index(cup_round->choose_teams, CupChooseTeam, j).sid->str, buf) == 0)
|
||||
(strcmp(g_array_index(cup_round->choose_teams, CupChooseTeam, j).sid->str, buf) == 0 ||
|
||||
strcmp(g_array_index(cup_round->choose_teams, CupChooseTeam, j).sid->str, league->sid->str) == 0))
|
||||
{
|
||||
if((idx + 1 >= g_array_index(cup_round->choose_teams, CupChooseTeam, j).start_idx &&
|
||||
idx + 1 <= g_array_index(cup_round->choose_teams, CupChooseTeam, j).end_idx &&
|
||||
|
|
Loading…
Reference in New Issue