From b4471b7d7da44de5c0a172472d51dbd0561c960b Mon Sep 17 00:00:00 2001 From: gyboth Date: Thu, 6 Nov 2008 10:06:58 +0000 Subject: [PATCH] Next opponent goalie values bug. --- src/game.c | 5 +++++ src/treeview.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/src/game.c b/src/game.c index 096e1e66..7ffddc2d 100644 --- a/src/game.c +++ b/src/game.c @@ -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_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]; } diff --git a/src/treeview.c b/src/treeview.c index 6643896f..95270fb9 100644 --- a/src/treeview.c +++ b/src/treeview.c @@ -1596,6 +1596,9 @@ 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++)