Remove broken “Play again” button in stats page after an online game
authorWuzzy <almikes@aol.com>
Tue, 03 Oct 2017 15:50:10 +0200
changeset 12644 2473b03629c8
parent 12643 0ca08b310819
child 12645 36a650c0a885
Remove broken “Play again” button in stats page after an online game
ChangeLog.txt
QTfrontend/game.cpp
--- a/ChangeLog.txt	Tue Oct 03 02:05:09 2017 +0200
+++ b/ChangeLog.txt	Tue Oct 03 15:50:10 2017 +0200
@@ -268,6 +268,7 @@
  * Prevent starting game with >48 hogs (because engine doesn't support it yet)
  * Fix the key for toggling team bars being incorrectly described
  * Fix caption of stats screen showing only one winner if multiple teams have won
+ * Remove broken “Play again” button appearing in stats page after an online game
 
 Content Creation:
  + Theme objects can now have more than 1 in-land rect specified. You can specify the amount in theme.cfg by adding another number (and ,) before the first rect
--- a/QTfrontend/game.cpp	Tue Oct 03 02:05:09 2017 +0200
+++ b/QTfrontend/game.cpp	Tue Oct 03 15:50:10 2017 +0200
@@ -453,6 +453,9 @@
 
 void HWGame::StartNet()
 {
+    lastGameStartArgs.clear();
+    lastGameType = gtNet;
+
     gameType = gtNet;
     demo.clear();
     Start(false);