--- a/QTfrontend/hwform.cpp Sun Dec 09 13:21:47 2007 +0000
+++ b/QTfrontend/hwform.cpp Sun Dec 09 13:49:33 2007 +0000
@@ -30,6 +30,7 @@
#include <QStackedLayout>
#include <QLineEdit>
#include <QLabel>
+#include <QRadioButton>
#include "hwform.h"
#include "game.h"
@@ -402,7 +403,11 @@
pnetserver = new HWNetServer;
pnetserver->StartServer();
_NetConnect("localhost", pnetserver->getRunningPort(), ui.pageNet->editNetNick->text());
- pRegisterServer = new HWNetWwwServer(0, "hedgewars server", 46631);
+
+ if (ui.pageNet->rbLocalGame->isChecked())
+ pRegisterServer = new HWNetUdpServer(0, "hedgewars server", 46631);
+ else
+ pRegisterServer = new HWNetWwwServer(0, "hedgewars server", 46631);
}
void HWForm::NetDisconnect()