1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Read and write mods into map

This commit is contained in:
nordsoft
2023-04-12 02:59:55 +04:00
parent e669d31d33
commit d244702abc
2 changed files with 22 additions and 1 deletions

View File

@ -170,6 +170,10 @@ void CMapLoaderH3M::readHeader()
{
throw std::runtime_error("Invalid map format!");
}
// include basic mod
if(mapHeader->version == EMapFormat::WOG)
mapHeader->mods["wake-of-gods"];
// Read map name, description, dimensions,...
mapHeader->areAnyPlayers = reader->readBool();