QTfrontend/hwform.cpp
changeset 658 a7e625f5d9d0
parent 657 b34fc518a48a
child 659 5eafb20566f1
--- a/QTfrontend/hwform.cpp	Thu Dec 13 23:07:16 2007 +0000
+++ b/QTfrontend/hwform.cpp	Fri Dec 14 15:02:46 2007 +0000
@@ -428,13 +428,13 @@
 {
   config->SaveOptions();
   pnetserver = new HWNetServer;
-  pnetserver->StartServer();
+  pnetserver->StartServer(ui.pageNetServer->sbPort->value());
   _NetConnect("localhost", pnetserver->getRunningPort(), ui.pageOptions->editNetNick->text());
 
   if (ui.pageNet->rbLocalGame->isChecked())
-    pRegisterServer = new HWNetUdpServer(0, "hedgewars server", 46631);
+    pRegisterServer = new HWNetUdpServer(0, "hedgewars server", ui.pageNetServer->sbPort->value());
   else
-    pRegisterServer = new HWNetWwwServer(0, "hedgewars server", 46631);
+    pRegisterServer = new HWNetWwwServer(0, "hedgewars server", ui.pageNetServer->sbPort->value());
 }
 
 void HWForm::NetDisconnect()