--- a/QTfrontend/hwform.cpp Thu Jul 12 14:46:16 2018 +0200
+++ b/QTfrontend/hwform.cpp Sun Jul 15 14:21:06 2018 +0200
@@ -1708,11 +1708,11 @@
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)
+ /* Don't allow to start game with more than cMaxHHs hedgehogs.
+ TODO: Remove this as soon the engine supports more hedgehogs. */
+ if(numHogs > cMaxHHs)
{
- 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);
+ 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);
return;
}
QString ammo;