a try to set the Secrets tab of the help screen
[neverball] / ball / st_play.c
index c665640..b44e38e 100644 (file)
@@ -196,15 +196,16 @@ static void play_loop_timer(int id, float dt)
     game_set_rot(view_rotate * k);
 
     state = game_step(g, at, &state_value);
+
+    game_step_fade(dt);
+    demo_play_step(at);
+    audio_timer(dt);
+
     if (state)
     {
         level_stop(state, state_value, curr_clock(), curr_coins());
         goto_state(&st_play_end);
     }
-
-    game_step_fade(dt);
-    demo_play_step(at);
-    audio_timer(dt);
 }
 
 static void play_loop_point(int id, int x, int y, int dx, int dy)
@@ -250,6 +251,12 @@ static int play_loop_keybd(int c, int d)
             config_set_d(CONFIG_CAMERA, 2);
             hud_view_pulse(2);
         }
+        if (c == SDLK_r && curr_lg()->mode != MODE_CHALLENGE)
+        {
+            level_stop(GAME_NONE, 0, curr_clock(), curr_coins());
+            level_play_go();
+            goto_state(&st_play_set);
+        }
     }
     else
     {