mirror of
https://github.com/tstellar/bygfoot.git
synced 2024-12-16 10:21:15 +01:00
Table bugfix.
This commit is contained in:
parent
b3d36c7a66
commit
e6a426a8da
@ -199,6 +199,7 @@ sharedstatedir = @sharedstatedir@
|
||||
srcdir = @srcdir@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
AM_CFLAGS = -Wall #-fprofile-arcs -ftest-coverage -pg
|
||||
|
@ -73,7 +73,7 @@ player_new(Team *tm, gfloat average_talent, gboolean new_id)
|
||||
|
||||
new.talent =
|
||||
CLAMP(average_talent * skill_factor, 0,
|
||||
const_float("float_player_max_skill"));//85;
|
||||
const_float("float_player_max_skill"));;
|
||||
|
||||
new.skill = player_skill_from_talent(&new);
|
||||
new.cskill = new.skill;
|
||||
@ -1212,7 +1212,7 @@ player_replace_by_new(Player *pl, gboolean free_player)
|
||||
{
|
||||
Team *tm = pl->team;
|
||||
gint idx = player_id_index(tm, pl->id);
|
||||
Player new = player_new(tm, team_get_average_skill(tm, FALSE), FALSE);
|
||||
Player new = player_new(tm, team_get_average_talent(tm), FALSE);
|
||||
|
||||
new.name = name_get(pl->team->names_file);
|
||||
new.pos = pl->pos;
|
||||
|
@ -69,11 +69,13 @@ table_element_new(Team *team, gint old_rank)
|
||||
void
|
||||
table_update(const Fixture *fix)
|
||||
{
|
||||
gint i, j;
|
||||
gint i, j, end;
|
||||
gint idx = (fix->result[0][0] < fix->result[1][0]);
|
||||
TableElement *elements[2];
|
||||
|
||||
for(j = 0; j < 2; j++)
|
||||
end = (fix->clid < ID_CUP_START) ? 2 : 1;
|
||||
|
||||
for(j = 0; j < end; j++)
|
||||
{
|
||||
elements[0] = elements[1] = NULL;
|
||||
table_update_get_elements(elements, fix, (j == 1));
|
||||
|
Loading…
Reference in New Issue
Block a user