mirror of
https://github.com/tstellar/bygfoot.git
synced 2025-03-06 12:08:03 +01:00
Fixed bug with peak_region
This commit is contained in:
parent
70f3d94ea0
commit
09248a5c1e
@ -160,6 +160,10 @@ youth_academy_add_new_player(YouthAcademy *youth_academy)
|
|||||||
new.streak = PLAYER_STREAK_NONE;
|
new.streak = PLAYER_STREAK_NONE;
|
||||||
new.streak_count = new.streak_prob = 0;
|
new.streak_count = new.streak_prob = 0;
|
||||||
|
|
||||||
|
new.peak_region =
|
||||||
|
math_gauss_dist(const_float("float_player_peak_region_lower"),
|
||||||
|
const_float("float_player_peak_region_upper"));//2;
|
||||||
|
|
||||||
g_array_append_val(youth_academy->players, new);
|
g_array_append_val(youth_academy->players, new);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user