QTfrontend/hwform.cpp
changeset 13505 69f0f437c75a
parent 13486 4ef83bcb850b
child 13628 d5e029b84e16
equal deleted inserted replaced
13504:f747c385b5ba 13505:69f0f437c75a
  1705     ui.pageNetGame->pNetTeamsWidget->removeNetTeam(team);
  1705     ui.pageNetGame->pNetTeamsWidget->removeNetTeam(team);
  1706 }
  1706 }
  1707 
  1707 
  1708 void HWForm::StartMPGame()
  1708 void HWForm::StartMPGame()
  1709 {
  1709 {
  1710     int numHogs = ui.pageMultiplayer->teamsSelect->getNumHedgehogs();
       
  1711     /* Don't allow to start game with more than cMaxHHs hedgehogs.
       
  1712     TODO: Remove this as soon the engine supports more hedgehogs. */
       
  1713     if(numHogs > cMaxHHs)
       
  1714     {
       
  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;
       
  1717     }
       
  1718     QString ammo;
  1710     QString ammo;
  1719     ammo = ui.pageMultiplayer->gameCFG->WeaponsName->itemData(
  1711     ammo = ui.pageMultiplayer->gameCFG->WeaponsName->itemData(
  1720                ui.pageMultiplayer->gameCFG->WeaponsName->currentIndex()
  1712                ui.pageMultiplayer->gameCFG->WeaponsName->currentIndex()
  1721            ).toString();
  1713            ).toString();
  1722 
  1714