QTfrontend/game.cpp
changeset 14924 5119203470f3
parent 14698 93429d8f6b3f
child 14952 ba5fd934f49b
--- a/QTfrontend/game.cpp	Tue May 07 22:36:15 2019 +0200
+++ b/QTfrontend/game.cpp	Fri May 10 22:51:43 2019 +0200
@@ -497,6 +497,19 @@
     SetGameState(gsStarted);
 }
 
+void HWGame::PlayOfficialServerDemo()
+{
+    // TODO: Use gtDemo so fast-forward is available.
+    // Needs engine support first.
+    lastGameStartArgs.clear();
+    lastGameType = gtLocal;
+
+    gameType = gtLocal;
+    demo.clear();
+    Start(false);
+    SetGameState(gsStarted);
+}
+
 void HWGame::StartNet()
 {
     lastGameStartArgs.clear();