Don't refuse to create save file when a game loaded from save interrupts
authorunc0rr
Mon, 05 Sep 2011 15:51:32 +0400
changeset 5781 1fa54e5ea479
parent 5780 528dd4a14861
child 5782 64902ceab3e2
Don't refuse to create save file when a game loaded from save interrupts
QTfrontend/game.cpp
--- a/QTfrontend/game.cpp	Mon Sep 05 15:49:14 2011 +0400
+++ b/QTfrontend/game.cpp	Mon Sep 05 15:51:32 2011 +0400
@@ -53,7 +53,9 @@
 void HWGame::onClientDisconnect()
 {
     switch (gameType) {
-        case gtDemo: break;
+        case gtDemo: 
+            if (gameState == gsInterrupted || gameState == gsHalted) emit HaveRecord(false, demo);
+            break;
         case gtNet:
             emit HaveRecord(true, demo);
             break;