diff --git a/bygfoot_misc.glade b/bygfoot_misc.glade index 5f9f8351..5658c966 100644 --- a/bygfoot_misc.glade +++ b/bygfoot_misc.glade @@ -2615,7 +2615,7 @@ True - Improve! + Confirm! True False GTK_JUSTIFY_LEFT @@ -2653,7 +2653,7 @@ True Esc True - gtk-close + gtk-cancel True GTK_RELIEF_NORMAL True diff --git a/src/game.c b/src/game.c index 3c0a3ed9..6032986c 100644 --- a/src/game.c +++ b/src/game.c @@ -334,9 +334,13 @@ game_assign_attendance(Fixture *fix) const_float("float_game_stadium_attendance_percentage_upper")) * powf(tm[0]->stadium.safety, const_float("float_game_stadium_attendance_safety_exponent")); + /* calculate the differnce in ticket prices has on attendance */ + /* TODO: Make the factor 0.125 a constant*/ + gfloat delta_price = tm[0]->stadium.ticket_price - const_int("int_team_stadium_ticket_price"); + gfloat price_factor = 1/(1+0.125*delta_price); gint 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)), + math_rnd(0.9, 1.1)*price_factor), tm[0]->stadium.capacity); if(fix->clid < ID_CUP_START && diff --git a/src/misc_interface.c b/src/misc_interface.c index 6d56c7e2..b9847e0e 100644 --- a/src/misc_interface.c +++ b/src/misc_interface.c @@ -1137,11 +1137,11 @@ create_window_stadium (void) gtk_widget_show (image60); gtk_box_pack_start (GTK_BOX (hbox67), image60, FALSE, FALSE, 0); - label107 = gtk_label_new_with_mnemonic (_("Improve!")); + label107 = gtk_label_new_with_mnemonic (_("Confirm!")); gtk_widget_show (label107); gtk_box_pack_start (GTK_BOX (hbox67), label107, FALSE, FALSE, 0); - button_stadium_cancel = gtk_button_new_from_stock ("gtk-close"); + button_stadium_cancel = gtk_button_new_from_stock ("gtk-cancel"); gtk_widget_show (button_stadium_cancel); gtk_box_pack_start (GTK_BOX (vbox39), button_stadium_cancel, FALSE, FALSE, 0); gtk_tooltips_set_tip (tooltips, button_stadium_cancel, _("Esc"), NULL);