mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Redesign mod incompatibility message
This commit is contained in:
@@ -74,12 +74,12 @@ void LobbyInfo::verifyStateBeforeStart(bool ignoreNoHuman) const
|
||||
throw std::domain_error(VLC->generaltexth->translate("core.genrltxt.529"));
|
||||
|
||||
auto missingMods = CMapService::verifyMapHeaderMods(*mi->mapHeader);
|
||||
ModIncompatibility::ModList modList;
|
||||
ModIncompatibility::ModListWithVersion modList;
|
||||
for(const auto & m : missingMods)
|
||||
modList.push_back({m.second.name, m.second.version.toString()});
|
||||
|
||||
if(!modList.empty())
|
||||
throw ModIncompatibility(std::move(modList));
|
||||
throw ModIncompatibility(modList);
|
||||
|
||||
//there must be at least one human player before game can be started
|
||||
std::map<PlayerColor, PlayerSettings>::const_iterator i;
|
||||
|
||||
Reference in New Issue
Block a user