- gui_set_image(shot_id, get_level(i)->shot);
-
- set_most_coins(i, -1);
- set_best_times(i, -1);
-
- if (i == 0)
- gui_set_label(status_id, _("Challenge all levels from the first one"));
- else if (config_get_d(CONFIG_MODE) == MODE_PRACTICE)
- {
- if (b)
- gui_set_label(status_id, _("Play this bonus level in practice mode"));
- else
- gui_set_label(status_id, _("Play this level in practice mode"));
- }
- else
- {
- if (b)
- gui_set_label(status_id, _("Play this bonus level in normal mode"));
- else
- gui_set_label(status_id, _("Play this level in normal mode"));
- }
- if (config_get_d(CONFIG_CHEAT))
- {
- gui_set_label(status_id, get_level(i)->file);
- }
- return;
+ gui_set_image(shot_id, l->shot);
+
+ set_most_coins(&l->score.most_coins, -1);
+
+ if (curr_mode() == MODE_PRACTICE)
+ {
+ set_best_times(&l->score.best_times, -1, 0);
+ if (l->is_bonus)
+ gui_set_label(status_id,
+ _("Play this bonus level in practice mode"));
+ else
+ gui_set_label(status_id,
+ _("Play this level in practice mode"));
+ }
+ else
+ {
+ set_best_times(&l->score.unlock_goal, -1, 1);
+ if (l->is_bonus)
+ gui_set_label(status_id,
+ _("Play this bonus level in normal mode"));
+ else
+ gui_set_label(status_id, _("Play this level in normal mode"));
+ }
+ if (config_cheat())
+ {
+ gui_set_label(status_id, l->file);
+ }
+ return;