1
1
mirror of https://github.com/tstellar/bygfoot.git synced 2025-01-31 07:54:50 +01:00

Max player tweaks.

This commit is contained in:
gyboth 2005-05-14 17:50:54 +00:00
parent 62a77c6406
commit 0af9eb4251
3 changed files with 6 additions and 6 deletions

View File

@ -91,12 +91,12 @@ player_get_position_from_structure(gint structure, gint player_number)
position = PLAYER_POS_GOALIE;
else if(player_number < bound[0] ||
(player_number > 10 &&
player_number < (11 + (const_int("int_team_cpu_max_players") - 11) *
player_number < (11 + (const_int("int_team_cpu_players") - 11) *
const_float("float_player_pos_bound1"))))
position = PLAYER_POS_DEFENDER;
else if(player_number < bound[1] ||
(player_number > 10 &&
player_number < (11 + (const_int("int_team_cpu_max_players") - 11) *
player_number < (11 + (const_int("int_team_cpu_players") - 11) *
const_float("float_player_pos_bound2"))))
position = PLAYER_POS_MIDFIELDER;
else

View File

@ -123,7 +123,7 @@ team_generate_players_stadium(Team *tm)
average_skill = CLAMP(average_skill, 0, const_float("float_player_max_skill"));
for(i=0;i<const_int("int_team_cpu_max_players");i++)
for(i=0;i<const_int("int_team_cpu_players");i++)
{
new = player_new(tm, average_skill, TRUE);
wages += new.wage;

View File

@ -189,10 +189,10 @@ float_player_pos_bound1 3755
float_player_pos_bound2 7510
# maximum number of players in a user team.
int_team_max_players 20
# maximum number of players in cpu teams. should be
int_team_max_players 100
# number of players in cpu teams. should be
# less or equal int_team_max_players
int_team_cpu_max_players 20
int_team_cpu_players 20
# highest skill and talent a player can have.
float_player_max_skill 990000