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))); |