fixed bug in (still largely broken) single-step mode when using joystick
[rocksndiamonds.git] / src / events.c
index ea5312aecb1efbe79e8239e20ab69115c36a74e4..7a3f9987d4b09a80ebdc48c970c8eb118f3b4727 100644 (file)
@@ -2343,7 +2343,12 @@ void HandleJoystick()
        return;
       }
 
-      if (tape.recording && tape.pausing && !tape.use_mouse)
+      if (tape.single_step && tape.recording && tape.pausing && !tape.use_mouse)
+      {
+       if (joystick & JOY_ACTION)
+         TapeTogglePause(TAPE_TOGGLE_AUTOMATIC);
+      }
+      else if (tape.recording && tape.pausing && !tape.use_mouse)
       {
        if (joystick & JOY_ACTION)
          TapeTogglePause(TAPE_TOGGLE_MANUAL);