mirror of https://github.com/tstellar/bygfoot.git
Season stat and load/save bugfixes.
This commit is contained in:
parent
af0795299f
commit
2ef0c2218c
|
@ -69,7 +69,8 @@ callback_show_next_live_game(void)
|
||||||
&usr(fixture_user_team_involved(&g_array_index(lig(i).fixtures, Fixture, j))).
|
&usr(fixture_user_team_involved(&g_array_index(lig(i).fixtures, Fixture, j))).
|
||||||
options))
|
options))
|
||||||
{
|
{
|
||||||
live_game_calculate_fixture(&g_array_index(lig(i).fixtures, Fixture, j));
|
live_game_calculate_fixture(&g_array_index(lig(i).fixtures, Fixture, j),
|
||||||
|
&usr(fixture_user_team_involved(&g_array_index(lig(i).fixtures, Fixture, j))).live_game);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -83,7 +84,8 @@ callback_show_next_live_game(void)
|
||||||
&usr(fixture_user_team_involved(&g_array_index(acp(i)->fixtures, Fixture, j))).
|
&usr(fixture_user_team_involved(&g_array_index(acp(i)->fixtures, Fixture, j))).
|
||||||
options))
|
options))
|
||||||
{
|
{
|
||||||
live_game_calculate_fixture(&g_array_index(acp(i)->fixtures, Fixture, j));
|
live_game_calculate_fixture(&g_array_index(acp(i)->fixtures, Fixture, j),
|
||||||
|
&usr(fixture_user_team_involved(&g_array_index(acp(i)->fixtures, Fixture, j))).live_game);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -808,7 +810,7 @@ callback_show_season_history(gint type)
|
||||||
stat = &g_array_index(season_stats, SeasonStat, stat2);
|
stat = &g_array_index(season_stats, SeasonStat, stat2);
|
||||||
if(stat1 == -1)
|
if(stat1 == -1)
|
||||||
stat1 = 0;
|
stat1 = 0;
|
||||||
else if(stat1 == stat->league_champs->len - 1)
|
else if(stat1 == stat->league_stats->len - 1)
|
||||||
stat1 = -1;
|
stat1 = -1;
|
||||||
else
|
else
|
||||||
stat1++;
|
stat1++;
|
||||||
|
@ -816,7 +818,7 @@ callback_show_season_history(gint type)
|
||||||
case SHOW_PREVIOUS_LEAGUE:
|
case SHOW_PREVIOUS_LEAGUE:
|
||||||
stat = &g_array_index(season_stats, SeasonStat, stat2);
|
stat = &g_array_index(season_stats, SeasonStat, stat2);
|
||||||
if(stat1 == -1)
|
if(stat1 == -1)
|
||||||
stat1 = stat->league_champs->len - 1;
|
stat1 = stat->league_stats->len - 1;
|
||||||
else if(stat1 == 0)
|
else if(stat1 == 0)
|
||||||
stat1 = -1;
|
stat1 = -1;
|
||||||
else
|
else
|
||||||
|
@ -829,7 +831,7 @@ callback_show_season_history(gint type)
|
||||||
stat2 = (stat2 == 0) ? len - 1 : stat2 - 1;
|
stat2 = (stat2 == 0) ? len - 1 : stat2 - 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
treeview_show_season_history(stat1, stat2);
|
treeview_show_season_history(stat1, stat2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -144,6 +144,7 @@ xml_loadsave_league_end_element (GMarkupParseContext *context,
|
||||||
tag == TAG_LEAGUE_NEW_TABLE_NAME ||
|
tag == TAG_LEAGUE_NEW_TABLE_NAME ||
|
||||||
tag == TAG_LEAGUE_NEW_TABLE_ADD_WEEK ||
|
tag == TAG_LEAGUE_NEW_TABLE_ADD_WEEK ||
|
||||||
tag == TAG_LEAGUE_TWO_MATCH_WEEK_START ||
|
tag == TAG_LEAGUE_TWO_MATCH_WEEK_START ||
|
||||||
|
tag == TAG_LEAGUE_TWO_MATCH_WEEK_END ||
|
||||||
tag == TAG_LEAGUE_TABLE_FILE ||
|
tag == TAG_LEAGUE_TABLE_FILE ||
|
||||||
tag == TAG_LEAGUE_AVERAGE_TALENT ||
|
tag == TAG_LEAGUE_AVERAGE_TALENT ||
|
||||||
tag == TAG_LEAGUE_AVERAGE_TALENT ||
|
tag == TAG_LEAGUE_AVERAGE_TALENT ||
|
||||||
|
|
Loading…
Reference in New Issue