QTfrontend/hwform.cpp
changeset 13486 4ef83bcb850b
parent 13330 3f2ee2f9b51d
child 13505 69f0f437c75a
equal deleted inserted replaced
13485:c85b324c4c2d 13486:4ef83bcb850b
  1706 }
  1706 }
  1707 
  1707 
  1708 void HWForm::StartMPGame()
  1708 void HWForm::StartMPGame()
  1709 {
  1709 {
  1710     int numHogs = ui.pageMultiplayer->teamsSelect->getNumHedgehogs();
  1710     int numHogs = ui.pageMultiplayer->teamsSelect->getNumHedgehogs();
  1711     /* Don't allow to start game with >48 hogs.
  1711     /* Don't allow to start game with more than cMaxHHs hedgehogs.
  1712     TODO: Remove this as soon the engine supports more hogs. */
  1712     TODO: Remove this as soon the engine supports more hedgehogs. */
  1713     if(numHogs > 48)
  1713     if(numHogs > cMaxHHs)
  1714     {
  1714     {
  1715         MessageDialog::ShowErrorMessage(QMessageBox::tr("Sorry, Hedgewars can't be played with more than 48 hedgehogs. Please try again with fewer hedgehogs.\n\nCurrent number of hedgehogs: %1").arg(numHogs), this);
  1715         MessageDialog::ShowErrorMessage(QMessageBox::tr("Sorry, there are too many hedgehogs! Please try again with fewer hedgehogs.\n\nMaximum number of hedgehogs: %1\nCurrent number of hedgehogs: %2").arg(cMaxHHs).arg(numHogs), this);
  1716         return;
  1716         return;
  1717     }
  1717     }
  1718     QString ammo;
  1718     QString ammo;
  1719     ammo = ui.pageMultiplayer->gameCFG->WeaponsName->itemData(
  1719     ammo = ui.pageMultiplayer->gameCFG->WeaponsName->itemData(
  1720                ui.pageMultiplayer->gameCFG->WeaponsName->currentIndex()
  1720                ui.pageMultiplayer->gameCFG->WeaponsName->currentIndex()