1
1
mirror of https://github.com/tstellar/bygfoot.git synced 2024-12-14 01:14:28 +01:00

"Minor lg bugs."

This commit is contained in:
gyboth 2005-07-18 19:53:40 +00:00
parent c24a0b841e
commit bbf5ecec70
6 changed files with 10 additions and 10 deletions

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2005-07-18 18:14+0200\n"
"POT-Creation-Date: 2005-07-18 21:50+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"

View File

@ -10,7 +10,7 @@ msgid ""
msgstr ""
"Project-Id-Version: bygfoot 0.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2005-07-18 18:14+0200\n"
"POT-Creation-Date: 2005-07-18 21:50+0200\n"
"PO-Revision-Date: 2005-07-15 09:46+0200\n"
"Last-Translator: Gyz Both <gyboth@bygfoot.com>\n"
"Language-Team: \n"

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Bygfoot 1.9\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2005-07-18 18:14+0200\n"
"POT-Creation-Date: 2005-07-18 21:50+0200\n"
"PO-Revision-Date: 2005-06-26 23:00+0200\n"
"Last-Translator: Alexandre BERAUD <al_beraud@yahoo.fr>\n"
"Language-Team: French\n"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Bygfoot 1.9.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2005-07-18 18:14+0200\n"
"POT-Creation-Date: 2005-07-18 21:50+0200\n"
"PO-Revision-Date: 2005-06-19 10:11+0200\n"
"Last-Translator: Vincent van Adrighem <adrighem@gnome.org>\n"
"Language-Team: Dutch <vertaling@nl.linux.org>\n"

View File

@ -183,14 +183,14 @@ game_get_player_probs(GArray *players, gfloat *probs, gfloat *weights, gboolean
gint i;
probs[0] = (skills) ? player_get_game_skill(&g_array_index(players, Player, 1), FALSE) *
weights[g_array_index(players, Player, 1).pos - 1] :
weights[g_array_index(players, Player, 1).pos - 1] *
weights[g_array_index(players, Player, 1).cpos - 1] :
weights[g_array_index(players, Player, 1).cpos - 1] *
(g_array_index(players, Player, 1).cskill != 0);
for(i=1;i<10;i++)
probs[i] = probs[i - 1] +
((skills) ? player_get_game_skill(&g_array_index(players, Player, i + 1), FALSE) *
weights[g_array_index(players, Player, i + 1).pos - 1] :
weights[g_array_index(players, Player, i + 1).pos - 1] *
weights[g_array_index(players, Player, i + 1).cpos - 1] :
weights[g_array_index(players, Player, i + 1).cpos - 1] *
(g_array_index(players, Player, i + 1).cskill != 0));
}

View File

@ -416,8 +416,8 @@ team_find_appropriate_structure(const Team *tm)
gint structure = 0;
for(i=0;i<11;i++)
if(player_of_idx_team(tm, i)->cskill > 0 && player_of_idx_team(tm, i)->pos != 0)
structure += (gint)rint(powf(10, PLAYER_POS_FORWARD - player_of_idx_team(tm, i)->pos));
if(player_of_idx_team(tm, i)->cskill > 0 && player_of_idx_team(tm, i)->cpos != 0)
structure += (gint)rint(powf(10, PLAYER_POS_FORWARD - player_of_idx_team(tm, i)->cpos));
return structure;
}