QTfrontend/game.cpp
changeset 7180 53ffc8853008
parent 7130 fcab1fd02bc6
child 7198 5debd5fe526e
--- a/QTfrontend/game.cpp	Mon Jun 04 08:11:47 2012 -0400
+++ b/QTfrontend/game.cpp	Mon Jun 04 21:32:30 2012 +0400
@@ -53,20 +53,18 @@
 {
     switch (gameType)
     {
-        case gtSave:
-            if (gameState == gsInterrupted || gameState == gsHalted)
-                emit HaveRecord(false, demo);
-            else if (gameState == gsFinished)
-                emit HaveRecord(true, demo);
-            break;
         case gtDemo:
+            // for video recording we need demo anyway 
+            emit HaveRecord(rtNeither, demo);
             break;
         case gtNet:
-            emit HaveRecord(true, demo);
+            emit HaveRecord(rtDemo, demo);
             break;
         default:
-            if (gameState == gsInterrupted || gameState == gsHalted) emit HaveRecord(false, demo);
-            else if (gameState == gsFinished) emit HaveRecord(true, demo);
+            if (gameState == gsInterrupted || gameState == gsHalted)
+                emit HaveRecord(rtSave, demo);
+            else if (gameState == gsFinished)
+                emit HaveRecord(rtDemo, demo);
     }
     SetGameState(gsStopped);
 }