Enable "replay" button after playing a demo or saved game
authorWuzzy <Wuzzy2@mail.ru>
Fri, 26 Jul 2019 01:09:30 +0200
changeset 15276 d111a0d9d499
parent 15275 66c987015f2d
child 15277 7b05af5912cb
Enable "replay" button after playing a demo or saved game
QTfrontend/hwform.cpp
--- a/QTfrontend/hwform.cpp	Thu Jul 25 23:02:02 2019 +0300
+++ b/QTfrontend/hwform.cpp	Fri Jul 26 01:09:30 2019 +0200
@@ -815,6 +815,8 @@
         case gtQLocal:
         case gtTraining:
         case gtCampaign:
+        case gtDemo:
+        case gtSave:
             ui.pageGameStats->restartBtnVisible(true);
             break;
         default:
@@ -2442,6 +2444,10 @@
     case gtLocal:
         game->StartLocal();
         break;
+    case gtDemo:
+    case gtSave:
+        PlayDemo();
+        break;
     default:
         break;
     }