QTfrontend/newnetclient.cpp
changeset 1541 61b3b32aede8
parent 1530 3b8d723661b2
child 1558 3370b7ffeb5c
equal deleted inserted replaced
1540:adcf8c366c79 1541:61b3b32aede8
   479 	onTurnTimeChanged(m_pGameCFGWidget->getTurnTime());
   479 	onTurnTimeChanged(m_pGameCFGWidget->getTurnTime());
   480 	onFortsModeChanged(m_pGameCFGWidget->getGameFlags() & 0x1);
   480 	onFortsModeChanged(m_pGameCFGWidget->getGameFlags() & 0x1);
   481 	onTeamsDivideChanged(m_pGameCFGWidget->getGameFlags() & 0x10);
   481 	onTeamsDivideChanged(m_pGameCFGWidget->getGameFlags() & 0x10);
   482 	onSolidChanged(m_pGameCFGWidget->getGameFlags() & 0x04);
   482 	onSolidChanged(m_pGameCFGWidget->getGameFlags() & 0x04);
   483 	// always initialize with default ammo (also avoiding complicated cross-class dependencies)
   483 	// always initialize with default ammo (also avoiding complicated cross-class dependencies)
   484 	onWeaponsNameChanged("Default", cDefaultAmmoStore->mid(10));
   484 	QString name = m_pGameCFGWidget->WeaponsName->currentText();
       
   485 	QString ammo = m_pGameCFGWidget->WeaponsName->itemData(
       
   486 			m_pGameCFGWidget->WeaponsName->currentIndex()
       
   487 			).toString();
       
   488 	onWeaponsNameChanged(name, ammo);
   485 }
   489 }
   486 
   490 
   487 void HWNewNet::RunGame()
   491 void HWNewNet::RunGame()
   488 {
   492 {
   489 	emit AskForRunGame();
   493 	emit AskForRunGame();