fixed bug with not marking tape as changed after adding action or delay
[rocksndiamonds.git] / src / tape.c
index 6b3523d419d4cf9b4a2ea8be3d2494409d92ae48..fb00fcd561e7fdc220ff2ac5b14422dcaf3f707d 100644 (file)
@@ -834,6 +834,8 @@ boolean TapeAddAction(byte action[MAX_TAPE_ACTIONS])
     tape.pos[tape.counter].delay++;
   }
 
+  tape.changed = TRUE;
+
   return TRUE;
 }
 
@@ -1185,29 +1187,25 @@ static void TapeSingleStep(void)
 
 void TapeQuickSave(void)
 {
-  if (game_status == GAME_MODE_MAIN)
+  if (game_status != GAME_MODE_PLAYING)
   {
-    Request("No game that can be saved!", REQ_CONFIRM);
+    Request("No game that could be saved!", REQ_CONFIRM);
 
     return;
   }
 
-  if (game_status != GAME_MODE_PLAYING)
-    return;
-
   if (!tape.recording)
   {
-    Request("No recording that can be saved!", REQ_CONFIRM);
+    Request("No recording that could be saved!", REQ_CONFIRM);
 
     return;
   }
 
-  if (tape.recording)
-    TapeHaltRecording();       // prepare tape for saving on-the-fly
+  TapeHaltRecording();         // prepare tape for saving on-the-fly
 
   if (TAPE_IS_EMPTY(tape))
   {
-    Request("No tape that can be saved!", REQ_CONFIRM);
+    Request("No tape that could be saved!", REQ_CONFIRM);
 
     return;
   }