1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00
This commit is contained in:
Tomasz Zieliński
2024-02-29 13:04:48 +01:00
parent 2c32c770f7
commit b7320bbc8a
2 changed files with 5 additions and 27 deletions

View File

@@ -837,23 +837,13 @@ void CMapGenOptions::serializeJson(JsonSerializeFormat & handler)
handler.serializeString("templateName", templateName);
if(!handler.saving)
{
// FIXME: doesn't load correctly? Name is "Jebus Cross"
setMapTemplate(templateName);
if (mapTemplate)
{
logGlobal->warn("Loaded previous RMG template");
// FIXME: Update dropdown menu
}
else
{
logGlobal->warn("Failed to deserialize previous map template");
}
}
handler.serializeIdArray("roads", enabledRoads);
//TODO: Serialize CMapGenOptions::CPlayerSettings ? This won't b saved between sessions
if (!handler.saving)
{
// Player settings won't be saved
resetPlayersMap();
}
}