set shots from the first level, not the second
[neverball] / ball / st_set.c
index 48db2ee..5816d85 100644 (file)
@@ -73,11 +73,11 @@ static void gui_set(int id, int i)
     const struct set *s = get_set(i);
     int jd;
     
-/*    if (set_completed(s)) 
+    if (set_completed(s)) 
        jd = gui_label(id, _(s->name), GUI_SML, GUI_ALL, gui_yel, gui_wht);
-    else if (set_extra_bonus_opened(s)) 
+    else if (set_unlocked(s)) 
        jd = gui_label(id, _(s->name), GUI_SML, GUI_ALL, gui_grn, gui_wht);
-    else*/
+    else
        jd = gui_label(id, _(s->name), GUI_SML, GUI_ALL, gui_wht, gui_wht);
     
     gui_active(jd, i, 0);
@@ -93,14 +93,17 @@ static int set_enter(void)
 
     int id, jd, kd;
 
+
+    set_init();
+    
+    /* Reset last set if it do not exists */
     if (!set_exists(last_set))
     {
        b = 0;
        last_set = 0;
+       config_set_d(CONFIG_LAST_SET, 0);
     }
 
-    set_init();
-
     audio_music_fade_to(0.5f, "bgm/inter.ogg");
     audio_play(AUD_START, 1.f);