More clean-up. Also removed the FPS lock, see
[neverball] / ball / st_start.c
index 0506a77..695c95b 100644 (file)
 /*---------------------------------------------------------------------------*/
 
 int goto_end_level(void)
-/* Action once the level sequence is ended (from goal or fail states) */
 {
-    int mode = curr_lg()->mode;
-    if (mode == MODE_SINGLE)
+    switch (curr_lg()->mode)
+    {
+    case MODE_SINGLE:
         return 0;
-    else if (mode == MODE_CHALLENGE)
+    case MODE_CHALLENGE:
         return goto_state(&st_over);
-    else
+    default:
         return goto_state(&st_start);
+    }
 }