Spectator Bugs in Multiplayer-Games
Posted: Wed Mar 04, 2009 11:17 pm
if both team of a game are controlled by human-players 0 spectators want to see this game
i'm not a good programmer, but the problem shoud be in the following code-part of the "game.c"-file:
In Teams with 2 human-controlled Teams max_att are lower than 0
i have made a little, but too simple bugfix:
the upper code is use by "player vs. cpu" -games and the lower code are used by "player vs. player"-games!
after the game the cash of the home-team are -23434544 , and the guest-team doesnt have a match-review.
i played with the version 2.3.1.
i'm not a good programmer, but the problem shoud be in the following code-part of the "game.c"-file:
Code: Select all
void game_assign_attendance(Fixture *fix)
{
...
max_att =
MIN((gint) rint( (gfloat)league_cup_average_capacity (tm[0]->clid) *
const_float("float_game_stadium_attendance_average_exceed_factor") *
math_rnd(0.9, 1.1)),tm[0]->stadium.capacity);
..
}
In Teams with 2 human-controlled Teams max_att are lower than 0
i have made a little, but too simple bugfix:
Code: Select all
max_att = MIN(tm[0]->stadium.capacity * 0.8 * const_float("float_game_stadium_attendance_average_exceed_factor") *
math_rnd(0.9, 1.1),
tm[0]->stadium.capacity);
after the game the cash of the home-team are -23434544 , and the guest-team doesnt have a match-review.
i played with the version 2.3.1.