QTfrontend/gamecfgwidget.cpp
changeset 1576 a02353129a41
parent 1532 e77b2ed67431
child 1628 4939254196d6
equal deleted inserted replaced
1575:ec56e8956fcb 1576:a02353129a41
   180 	CB_solid->setChecked(value);
   180 	CB_solid->setChecked(value);
   181 }
   181 }
   182 
   182 
   183 void GameCFGWidget::setNetAmmo(const QString& name, const QString& ammo)
   183 void GameCFGWidget::setNetAmmo(const QString& name, const QString& ammo)
   184 {
   184 {
   185 	if (ammo.size() != cDefaultAmmoStore->size() - 10)
   185 	if (ammo.size() != cDefaultAmmoStore->size())
   186 		QMessageBox::critical(this, tr("Error"), tr("Illegal ammo scheme"));
   186 		QMessageBox::critical(this, tr("Error"), tr("Illegal ammo scheme"));
   187 
   187 
   188 	int pos = WeaponsName->findText(name);
   188 	int pos = WeaponsName->findText(name);
   189 	if (pos == -1) {
   189 	if (pos == -1) {
   190 		WeaponsName->addItem(name, ammo);
   190 		WeaponsName->addItem(name, ammo);