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:
@ -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();
|
||||
|
Reference in New Issue
Block a user