QTfrontend/hwform.cpp
changeset 8609 3f6c08223aa1
parent 8569 62f4e903fddc
child 8613 82c649dfc7c3
equal deleted inserted replaced
8608:50cc0131b109 8609:3f6c08223aa1
   359 #ifdef USE_XFIRE
   359 #ifdef USE_XFIRE
   360 void HWForm::updateXfire(void)
   360 void HWForm::updateXfire(void)
   361 {
   361 {
   362     if(hwnet && (hwnet->clientState() != HWNewNet::Disconnected))
   362     if(hwnet && (hwnet->clientState() != HWNewNet::Disconnected))
   363     {
   363     {
   364         xfire_setvalue(XFIRE_SERVER, !hwnet->getHost().compare("netserver.hedgewars.org:46631") ? "Official server" : hwnet->getHost().toAscii());
   364         xfire_setvalue(XFIRE_SERVER, !hwnet->getHost().compare(QString("netserver.hedgewars.org:%1").arg(NETGAME_DEFAULT_PORT)) ? "Official server" : hwnet->getHost().toAscii());
   365         switch(hwnet->clientState())
   365         switch(hwnet->clientState())
   366         {
   366         {
   367             case HWNewNet::Connecting: // Connecting
   367             case HWNewNet::Connecting: // Connecting
   368             case HWNewNet::Connected:
   368             case HWNewNet::Connected:
   369                 xfire_setvalue(XFIRE_STATUS, "Connecting");
   369                 xfire_setvalue(XFIRE_STATUS, "Connecting");
  1006     _NetConnect(host, port, ui.pageOptions->editNetNick->text().trimmed());
  1006     _NetConnect(host, port, ui.pageOptions->editNetNick->text().trimmed());
  1007 }
  1007 }
  1008 
  1008 
  1009 void HWForm::NetConnectOfficialServer()
  1009 void HWForm::NetConnectOfficialServer()
  1010 {
  1010 {
  1011     NetConnectServer("netserver.hedgewars.org", 46631);
  1011     NetConnectServer("netserver.hedgewars.org", NETGAME_DEFAULT_PORT);
  1012 }
  1012 }
  1013 
  1013 
  1014 void HWForm::NetPassword(const QString & nick)
  1014 void HWForm::NetPassword(const QString & nick)
  1015 {
  1015 {
  1016     Q_UNUSED(nick);
  1016     Q_UNUSED(nick);