fixed trying to quick-save tape when playing game without recording
[rocksndiamonds.git] / src / tape.c
index eb825c8d98c49924fa69aa95e806bd63c20baa92..6b3523d419d4cf9b4a2ea8be3d2494409d92ae48 100644 (file)
@@ -994,6 +994,9 @@ byte *TapePlayAction(void)
       TapeStopWarpForward();
       TapeTogglePause(TAPE_TOGGLE_MANUAL);
 
+      if (setup.autorecord_after_replay)
+       TapeAppendRecording();
+
       return NULL;
     }
   }
@@ -1004,6 +1007,9 @@ byte *TapePlayAction(void)
     {
       TapeStopWarpForward();
       TapeTogglePause(TAPE_TOGGLE_MANUAL);
+
+      if (setup.autorecord_after_replay)
+       TapeAppendRecording();
     }
     else
     {
@@ -1189,6 +1195,13 @@ void TapeQuickSave(void)
   if (game_status != GAME_MODE_PLAYING)
     return;
 
+  if (!tape.recording)
+  {
+    Request("No recording that can be saved!", REQ_CONFIRM);
+
+    return;
+  }
+
   if (tape.recording)
     TapeHaltRecording();       // prepare tape for saving on-the-fly