Update build process and condense installer operations.
[neverball] / ball / st_goal.c
index f6d26d2..c5c43db 100644 (file)
@@ -276,8 +276,13 @@ static void goal_timer(int id, float dt)
 
 static int goal_keybd(int c, int d)
 {
-    if (d && config_tst_d(CONFIG_KEY_SCORE_NEXT, c))
-        return goal_action(gui_score_next(gui_score_get()));
+    if (d)
+    {
+        if (config_tst_d(CONFIG_KEY_SCORE_NEXT, c))
+            return goal_action(gui_score_next(gui_score_get()));
+        if (config_tst_d(CONFIG_KEY_RESTART, c) && progress_same_avail())
+            return goal_action(GOAL_SAME);
+    }
 
     return 1;
 }