mirror of
https://github.com/tstellar/bygfoot.git
synced 2025-01-30 23:44:49 +01:00
Yellow player bug fixed.
This commit is contained in:
parent
37f9b5ebdd
commit
7c12877dd5
@ -472,8 +472,8 @@ player_swap(Team *tm1, gint player_number1, Team *tm2, gint player_number2)
|
||||
|
||||
if(stat0 == STATUS_LIVE_GAME_PAUSE)
|
||||
{
|
||||
if((player_number1 < 11 && player_is_banned(player_of_idx_team(tm1, player_number1))) ||
|
||||
(player_number2 < 11 && player_is_banned(player_of_idx_team(tm1, player_number2))))
|
||||
if((player_number1 < 11 && player_is_banned(player_of_idx_team(tm1, player_number1)) > 0) ||
|
||||
(player_number2 < 11 && player_is_banned(player_of_idx_team(tm1, player_number2)) > 0))
|
||||
{
|
||||
game_gui_show_warning("You can't replace a banned player.");
|
||||
return;
|
||||
|
@ -464,7 +464,7 @@ query_user_teams_have_unfit(void)
|
||||
{
|
||||
for(j=0;j<11;j++)
|
||||
if(g_array_index(usr(i).tm->players, Player, j).health != 0 ||
|
||||
player_is_banned(&g_array_index(usr(i).tm->players, Player, j)))
|
||||
player_is_banned(&g_array_index(usr(i).tm->players, Player, j)) > 0)
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user