QTfrontend/hwform.cpp
changeset 1339 8a11157c6c81
parent 1315 c2f09811bb8c
child 1343 7a47a80b20ad
equal deleted inserted replaced
1338:758c39a3dcfe 1339:8a11157c6c81
   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