1
1
mirror of https://github.com/tstellar/bygfoot.git synced 2025-03-05 11:37:50 +01:00

Added a cleaner way to forbid offers before the TL deadline.

This commit is contained in:
aberaud 2005-06-28 21:58:00 +00:00
parent 14c39b0afb
commit 0d8bf904a4
2 changed files with 10 additions and 11 deletions

View File

@ -435,7 +435,13 @@ callback_transfer_list_clicked(gint button, gint idx)
return;
}
if (week >= transfer_get_deadline()-1)
{
game_gui_print_message(_("You can't make an offer so close to the transfer deadline."));
return;
}
stat1 = STATUS_SHOW_TRANSFER_LIST;
stat2 = idx;

View File

@ -108,17 +108,10 @@ on_button_digits_ok_clicked (GtkButton *button,
finance_pay_loan(values[0]);
break;
case STATUS_SHOW_TRANSFER_LIST:
if (week < transfer_get_deadline()-1)
{
if(transfer_add_offer(stat2, current_user.tm, values[0], values[1]))
game_gui_print_message(_("Your offer has been updated."));
else
game_gui_print_message(_("Your offer will be considered next week."));
}
if(transfer_add_offer(stat2, current_user.tm, values[0], values[1]))
game_gui_print_message(_("Your offer has been updated."));
else
{
game_gui_print_message(_("You can't make an offer after the transfer deadline."));
}
game_gui_print_message(_("Your offer will be considered next week."));
break;
case STATUS_CUSTOM_STRUCTURE:
destroy_window = misc2_callback_change_structure(values[1]);