mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
set values for map editor and rmg
This commit is contained in:
@ -137,6 +137,13 @@ std::unique_ptr<CMap> CMapGenerator::generate()
|
||||
throw;
|
||||
}
|
||||
Load::Progress::finish();
|
||||
|
||||
map->mapInstance->creationDateTime = std::time(nullptr);
|
||||
map->mapInstance->author = MetaString::createFromTextID("core.genrltxt.740");
|
||||
const auto * mapTemplate = mapGenOptions.getMapTemplate();
|
||||
if(mapTemplate)
|
||||
map->mapInstance->mapVersion = MetaString::createFromRawString(mapTemplate->getName());
|
||||
|
||||
return std::move(map->mapInstance);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user