equal
deleted
inserted
replaced
683 } |
683 } |
684 |
684 |
685 void HWForm::CreateNetGame() |
685 void HWForm::CreateNetGame() |
686 { |
686 { |
687 QString ammo; |
687 QString ammo; |
688 if (pnetserver) { |
688 if (hwnet->isRoomChief()) { |
689 ammo=ui.pageSelectWeapon->pWeapons->getWeaponsString(ui.pageNetGame->pGameCFG->WeaponsName->currentText()); |
689 ammo = ui.pageSelectWeapon->pWeapons->getWeaponsString(ui.pageNetGame->pGameCFG->WeaponsName->currentText()); |
690 } else { |
690 } else { |
691 ammo=ui.pageNetGame->pGameCFG->getNetAmmo(); |
691 ammo = ui.pageNetGame->pGameCFG->getNetAmmo(); |
692 } |
692 } |
|
693 |
693 CreateGame(ui.pageNetGame->pGameCFG, ui.pageNetGame->pNetTeamsWidget, ammo); |
694 CreateGame(ui.pageNetGame->pGameCFG, ui.pageNetGame->pNetTeamsWidget, ammo); |
694 |
695 |
695 connect(game, SIGNAL(SendNet(const QByteArray &)), hwnet, SLOT(SendNet(const QByteArray &))); |
696 connect(game, SIGNAL(SendNet(const QByteArray &)), hwnet, SLOT(SendNet(const QByteArray &))); |
696 connect(hwnet, SIGNAL(FromNet(const QByteArray &)), game, SLOT(FromNet(const QByteArray &))); |
697 connect(hwnet, SIGNAL(FromNet(const QByteArray &)), game, SLOT(FromNet(const QByteArray &))); |
697 |
698 |