mirror of
https://github.com/tstellar/bygfoot.git
synced 2024-12-16 10:21:15 +01:00
Added omit_from_history property to leagues and cups.
This commit is contained in:
parent
945c4d1093
commit
32ce54a2aa
@ -147,7 +147,10 @@ main_parse_cl_arguments(gint *argc, gchar ***argv)
|
||||
}
|
||||
|
||||
if(deb_level != -1)
|
||||
{
|
||||
option_set_int("int_debug", &constants, deb_level);
|
||||
window_create(WINDOW_DEBUG);
|
||||
}
|
||||
|
||||
if(deb_writer != -1)
|
||||
option_set_int("int_debug_writer", &constants, deb_writer);
|
||||
|
31
src/stat.c
31
src/stat.c
@ -185,24 +185,31 @@ stat_create_season_stat(void)
|
||||
|
||||
for(i=0;i<ligs->len;i++)
|
||||
{
|
||||
for(j = 0; j < lig(i).tables->len; j++)
|
||||
if(!query_league_cup_has_property(lig(i).id, "omit_from_history"))
|
||||
{
|
||||
new_champ.cl_name = g_strdup(g_array_index(lig(i).tables, Table, j).name);
|
||||
new_champ.team_name =
|
||||
g_strdup(g_array_index(g_array_index(lig(i).tables, Table, j).elements, TableElement, 0).team->name);
|
||||
g_array_append_val(new.league_champs, new_champ);
|
||||
}
|
||||
for(j = 0; j < lig(i).tables->len; j++)
|
||||
{
|
||||
new_champ.cl_name = g_strdup(g_array_index(lig(i).tables, Table, j).name);
|
||||
new_champ.team_name =
|
||||
g_strdup(g_array_index(g_array_index(lig(i).tables, Table, j).elements, TableElement, 0).team->name);
|
||||
g_array_append_val(new.league_champs, new_champ);
|
||||
|
||||
g_array_append_val(new.league_stats, lig(i).stats);
|
||||
lig(i).stats = stat_league_new(lig(i).name, lig(i).symbol);
|
||||
}
|
||||
|
||||
g_array_append_val(new.league_stats, lig(i).stats);
|
||||
lig(i).stats = stat_league_new(lig(i).name, lig(i).symbol);
|
||||
}
|
||||
}
|
||||
|
||||
for(i=0;i<acps->len;i++)
|
||||
{
|
||||
new_champ.cl_name = g_strdup(acp(i)->name);
|
||||
new_champ.team_name =
|
||||
g_strdup(cup_get_winner(acp(i))->name);
|
||||
g_array_append_val(new.cup_champs, new_champ);
|
||||
if(!query_league_cup_has_property(acp(i)->id, "omit_from_history"))
|
||||
{
|
||||
new_champ.cl_name = g_strdup(acp(i)->name);
|
||||
new_champ.team_name =
|
||||
g_strdup(cup_get_winner(acp(i))->name);
|
||||
g_array_append_val(new.cup_champs, new_champ);
|
||||
}
|
||||
}
|
||||
|
||||
g_array_append_val(season_stats, new);
|
||||
|
Loading…
Reference in New Issue
Block a user