changed code position of check when stopping tape recording
[rocksndiamonds.git] / src / tape.c
index 0fef94eb6afd84fdea646903465a29b690c2861b..38edafc59d6503b61e167c97f1ec16c1f8aadbe5 100644 (file)
@@ -637,9 +637,6 @@ static void TapeAppendRecording()
 
 void TapeHaltRecording()
 {
-  if (!tape.recording)
-    return;
-
   tape.counter++;
 
   // initialize delay for next tape entry (to be able to continue recording)
@@ -653,7 +650,8 @@ void TapeHaltRecording()
 
 void TapeStopRecording()
 {
-  TapeHaltRecording();
+  if (tape.recording)
+    TapeHaltRecording();
 
   tape.recording = FALSE;
   tape.pausing = FALSE;