1
0
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:
nordsoft
2023-09-23 00:32:48 +02:00
parent 60eef59bc9
commit dce1ac1538
16 changed files with 101 additions and 57 deletions

View File

@@ -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;