mirror of https://github.com/tstellar/bygfoot.git
Next opponent goalie values bug.
This commit is contained in:
parent
968d3a9978
commit
b4471b7d7d
|
@ -114,6 +114,11 @@ game_get_player_contribution(const Player *pl, gint type, gboolean special)
|
||||||
const_float("float_player_team_weight_forward_midfield"),
|
const_float("float_player_team_weight_forward_midfield"),
|
||||||
const_float("float_player_team_weight_forward_attack")}};
|
const_float("float_player_team_weight_forward_attack")}};
|
||||||
|
|
||||||
|
if(pl->cpos == PLAYER_POS_GOALIE)
|
||||||
|
printf("plgamesk %.1f, weight %.1f\n",
|
||||||
|
player_get_game_skill(pl, FALSE, special), player_weights[pl->cpos - 1][type - GAME_TEAM_VALUE_DEFEND]);
|
||||||
|
|
||||||
|
|
||||||
return player_get_game_skill(pl, FALSE, special) *
|
return player_get_game_skill(pl, FALSE, special) *
|
||||||
player_weights[pl->cpos - 1][type - GAME_TEAM_VALUE_DEFEND];
|
player_weights[pl->cpos - 1][type - GAME_TEAM_VALUE_DEFEND];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1596,6 +1596,9 @@ treeview_create_next_opponent_values(GtkListStore *ls, const Fixture *fix)
|
||||||
|
|
||||||
for(i=0;i<4;i++)
|
for(i=0;i<4;i++)
|
||||||
{
|
{
|
||||||
|
printf("%d tv %.1f %.1f maxval %.1f maxpip %d\n",
|
||||||
|
i, team_values[0][i], team_values[1][i], max_values[i], const_int("int_treeview_max_pipes"));
|
||||||
|
|
||||||
strcpy(buf2, "");
|
strcpy(buf2, "");
|
||||||
for(j=0;j<(gint)rint((gfloat)const_int("int_treeview_max_pipes") *
|
for(j=0;j<(gint)rint((gfloat)const_int("int_treeview_max_pipes") *
|
||||||
(team_values[fix->teams[0] == current_user.tm][i] / max_values[i]));j++)
|
(team_values[fix->teams[0] == current_user.tm][i] / max_values[i]));j++)
|
||||||
|
|
Loading…
Reference in New Issue