Deny playing bonus levels in any mode, including challenge mode. Todo: inform the...
[neverball] / ball / st_level.c
index 9e17573..63a1c75 100644 (file)
@@ -23,6 +23,7 @@
 #include "st_level.h"
 #include "st_play.h"
 #include "st_start.h"
+#include "st_over.h"
 
 /*---------------------------------------------------------------------------*/
 
@@ -82,7 +83,6 @@ static int level_enter(void)
 static void level_timer(int id, float dt)
 {
     game_step_fade(dt);
-    audio_timer(dt);
 }
 
 static int level_click(int b, int d)
@@ -109,7 +109,7 @@ static int level_buttn(int b, int d)
         {
             level_stat(GAME_NONE, curr_clock(), curr_coins());
             level_stop();
-            return goto_end_level();
+            return goto_state(&st_over);
         }
     }
     return 1;
@@ -126,7 +126,7 @@ static int poser_buttn(int c, int d)
 {
     if (d && config_tst_d(CONFIG_JOYSTICK_BUTTON_EXIT, c))
         return goto_state(&st_level);
-    
+
     return 1;
 }