QTfrontend/hwform.cpp
changeset 334 85eacbd9827f
parent 330 09cfe028a629
child 338 d1e75dcd285f
equal deleted inserted replaced
333:770743a946b1 334:85eacbd9827f
   236 	game->PlayDemo(cfgdir->absolutePath() + "/Demos/" + curritem->text() + ".hwd_" + cProtoVer);
   236 	game->PlayDemo(cfgdir->absolutePath() + "/Demos/" + curritem->text() + ".hwd_" + cProtoVer);
   237 }
   237 }
   238 
   238 
   239 void HWForm::_NetConnect(const QString & hostName, quint16 port, const QString & nick)
   239 void HWForm::_NetConnect(const QString & hostName, quint16 port, const QString & nick)
   240 {
   240 {
   241 	hwnet = new HWNewNet(config);
   241 	hwnet = new HWNewNet(config, ui.pageNetGame->pGameCFG);
   242 	connect(hwnet, SIGNAL(AddGame(const QString &)), this, SLOT(AddGame(const QString &)));
   242 	connect(hwnet, SIGNAL(AddGame(const QString &)), this, SLOT(AddGame(const QString &)));
   243 	connect(hwnet, SIGNAL(EnteredGame()), this, SLOT(NetGameEnter()));
   243 	connect(hwnet, SIGNAL(EnteredGame()), this, SLOT(NetGameEnter()));
   244 	connect(hwnet, SIGNAL(ChangeInTeams(const QStringList &)), this, SLOT(ChangeInNetTeams(const QStringList &)));
   244 	connect(hwnet, SIGNAL(ChangeInTeams(const QStringList &)), this, SLOT(ChangeInNetTeams(const QStringList &)));
   245 
   245 
   246 	connect(ui.pageNetGame->pNetTeamsWidget, SIGNAL(teamWillPlay(HWTeam)), hwnet, SLOT(AddTeam(HWTeam)));
   246 	connect(ui.pageNetGame->pNetTeamsWidget, SIGNAL(teamWillPlay(HWTeam)), hwnet, SLOT(AddTeam(HWTeam)));