fix loading files on osx too, the cause was different than other systems
authorkoda
Sun, 10 Mar 2013 01:27:48 +0100
changeset 8709 191bd86f97a1
parent 8708 6354b01d5500
child 8710 8d0a150d42c2
fix loading files on osx too, the cause was different than other systems
QTfrontend/hwform.cpp
--- a/QTfrontend/hwform.cpp	Sun Mar 10 01:02:15 2013 +0100
+++ b/QTfrontend/hwform.cpp	Sun Mar 10 01:27:48 2013 +0100
@@ -994,9 +994,8 @@
 
 void HWForm::PlayDemoQuick(const QString & demofilename)
 {
-    if (game && game->gameState == gsStarted) return;
-    GoBack(); //needed to cleanly disconnect from netgame
     GoToPage(ID_PAGE_MAIN);
+    //GoBack() <- don't or you'll close the socket
     CreateGame(0, 0, 0);
     game->PlayDemo(demofilename, false);
 }