mirror of https://github.com/tstellar/bygfoot.git
DEBUG
This commit is contained in:
parent
d4476e4285
commit
0a7f8ad316
|
@ -36,6 +36,8 @@
|
||||||
#include "variables.h"
|
#include "variables.h"
|
||||||
#include "xml_league.h"
|
#include "xml_league.h"
|
||||||
|
|
||||||
|
#define debug 1000
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Create and return a new cup with default values.
|
Create and return a new cup with default values.
|
||||||
@return The new cup.
|
@return The new cup.
|
||||||
|
@ -428,12 +430,15 @@ cup_load_choose_team_from_cup(Cup *cup, const Cup *cup_temp, GPtrArray *teams, G
|
||||||
end = ct->end_idx;
|
end = ct->end_idx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
printf("start = %d end = %d\n");
|
||||||
for(i = start; i < end; i++)
|
for(i = start; i < end; i++)
|
||||||
{
|
{
|
||||||
|
printf("Skip group check: %d\n", ct->skip_group_check);
|
||||||
if(ct->skip_group_check ||
|
if(ct->skip_group_check ||
|
||||||
!query_team_is_in_cups(
|
!query_team_is_in_cups(
|
||||||
(Team*)g_ptr_array_index(cup_teams_sorted, i), cup->group))
|
(Team*)g_ptr_array_index(cup_teams_sorted, i), cup->group))
|
||||||
{
|
{
|
||||||
|
printf("i = %d\n", i);
|
||||||
g_ptr_array_add(teams, g_ptr_array_index(cup_teams_sorted, i));
|
g_ptr_array_add(teams, g_ptr_array_index(cup_teams_sorted, i));
|
||||||
g_ptr_array_add(cup->team_names,
|
g_ptr_array_add(cup->team_names,
|
||||||
g_strdup(((Team*)g_ptr_array_index(cup_teams_sorted, i))->name));
|
g_strdup(((Team*)g_ptr_array_index(cup_teams_sorted, i))->name));
|
||||||
|
|
|
@ -357,6 +357,7 @@ strategy_set_tokens(const Team *tm, const Fixture *fixture)
|
||||||
printf("strategy_set_tokens\n");
|
printf("strategy_set_tokens\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
printf("Team = %s\n", tm->name);
|
||||||
const Fixture *fix = (fixture == NULL) ?
|
const Fixture *fix = (fixture == NULL) ?
|
||||||
team_get_fixture(tm, FALSE) : fixture;
|
team_get_fixture(tm, FALSE) : fixture;
|
||||||
const Team *opp = (fix == NULL) ? NULL :
|
const Team *opp = (fix == NULL) ? NULL :
|
||||||
|
|
Loading…
Reference in New Issue