diff -r 5b525d041fb4 -r a6cd48b8ef61 QTfrontend/hwform.cpp --- a/QTfrontend/hwform.cpp Mon Apr 10 20:56:01 2017 +0200 +++ b/QTfrontend/hwform.cpp Mon Apr 10 21:42:53 2017 +0200 @@ -1594,6 +1594,14 @@ void HWForm::StartMPGame() { + int numHogs = ui.pageMultiplayer->teamsSelect->getNumHedgehogs(); + /* Don't allow to start game with >48 hogs. + TODO: Remove this as soon the engine supports more hogs. */ + if(numHogs > 48) + { + 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); + return; + } QString ammo; ammo = ui.pageMultiplayer->gameCFG->WeaponsName->itemData( ui.pageMultiplayer->gameCFG->WeaponsName->currentIndex()