mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
Use error messages from H3
This commit is contained in:
parent
b9b51334eb
commit
935a18f077
@ -71,7 +71,7 @@ std::string StartInfo::getCampaignName() const
|
|||||||
void LobbyInfo::verifyStateBeforeStart(bool ignoreNoHuman) const
|
void LobbyInfo::verifyStateBeforeStart(bool ignoreNoHuman) const
|
||||||
{
|
{
|
||||||
if(!mi || !mi->mapHeader)
|
if(!mi || !mi->mapHeader)
|
||||||
throw std::domain_error("There is no map to start!");
|
throw std::domain_error(VLC->generaltexth->translate("core.genrltxt.529"));
|
||||||
|
|
||||||
auto missingMods = CMapService::verifyMapHeaderMods(*mi->mapHeader);
|
auto missingMods = CMapService::verifyMapHeaderMods(*mi->mapHeader);
|
||||||
CModHandler::Incompatibility::ModList modList;
|
CModHandler::Incompatibility::ModList modList;
|
||||||
@ -88,12 +88,12 @@ void LobbyInfo::verifyStateBeforeStart(bool ignoreNoHuman) const
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
if(i == si->playerInfos.cend() && !ignoreNoHuman)
|
if(i == si->playerInfos.cend() && !ignoreNoHuman)
|
||||||
throw std::domain_error("There is no human player on map");
|
throw std::domain_error(VLC->generaltexth->translate("core.genrltxt.530"));
|
||||||
|
|
||||||
if(si->mapGenOptions && si->mode == StartInfo::NEW_GAME)
|
if(si->mapGenOptions && si->mode == StartInfo::NEW_GAME)
|
||||||
{
|
{
|
||||||
if(!si->mapGenOptions->checkOptions())
|
if(!si->mapGenOptions->checkOptions())
|
||||||
throw std::domain_error("No random map template found!");
|
throw std::domain_error(VLC->generaltexth->translate("core.genrltxt.751"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user