equal
deleted
inserted
replaced
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); |