when no url is specified, default to official gameserver (issue 350)
authorkoda
Tue, 26 Mar 2013 17:34:29 +0100
changeset 8789 caba5291face
parent 8786 da1b1d19bd4c
child 8792 af4ab297b2b7
child 8793 43e106417a05
when no url is specified, default to official gameserver (issue #350)
QTfrontend/HWApplication.cpp
--- a/QTfrontend/HWApplication.cpp	Tue Mar 26 01:20:06 2013 +0100
+++ b/QTfrontend/HWApplication.cpp	Tue Mar 26 17:34:29 2013 +0100
@@ -83,6 +83,8 @@
             return true;
         } else if (scheme == "hwplay") {
             int port = openEvent->url().port(NETGAME_DEFAULT_PORT);
+            if (address == "")
+                address = "netserver.hedgewars.org";
             form->NetConnectQuick(address, (quint16) port);
             return true;
         } else {