mirror of https://github.com/tstellar/bygfoot.git
Next opponent goalie values bug.
This commit is contained in:
parent
843db5af40
commit
968d3a9978
|
@ -64,7 +64,7 @@ game_get_values(const Fixture *fix, gfloat team_values[][GAME_TEAM_VALUE_END],
|
|||
style_factor = (gfloat)tm[i]->style * const_float("float_game_style_factor");
|
||||
|
||||
team_values[i][GAME_TEAM_VALUE_GOALIE] =
|
||||
game_get_player_contribution(player_of_idx_team(tm[i], 0), FALSE, TRUE) *
|
||||
player_get_game_skill(player_of_idx_team(tm[i], 0), FALSE, TRUE) *
|
||||
(1 + home_advantage * (i == 0));
|
||||
|
||||
for(j=1;j<11;j++)
|
||||
|
@ -114,10 +114,6 @@ 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_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) *
|
||||
player_weights[pl->cpos - 1][type - GAME_TEAM_VALUE_DEFEND];
|
||||
}
|
||||
|
|
|
@ -1596,8 +1596,6 @@ treeview_create_next_opponent_values(GtkListStore *ls, const Fixture *fix)
|
|||
|
||||
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, "");
|
||||
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++)
|
||||
|
|
Loading…
Reference in New Issue