diff --git a/Server/mods/deathmatch/logic/CMainConfig.cpp b/Server/mods/deathmatch/logic/CMainConfig.cpp index 511ef7b9b2..e65bd3f8c1 100644 --- a/Server/mods/deathmatch/logic/CMainConfig.cpp +++ b/Server/mods/deathmatch/logic/CMainConfig.cpp @@ -916,7 +916,7 @@ bool CMainConfig::AddMissingSettings() CXMLAttribute* templateAttribute = *it3; const SString& attrName = templateAttribute->GetName(); - // Don't check value attribute which is intended to be different + // Don't check value attribute which is intended to be customized by the server if (attrName == "value") continue; @@ -946,6 +946,12 @@ bool CMainConfig::AddMissingSettings() foundNode->SetTagContent(templateNodeValue.c_str()); foundNode->SetCommentText(templateNodeComment.c_str(), true); + for (auto it3 = templateAttributes.ListBegin(); it3 != templateAttributes.ListEnd(); ++it3) + { + CXMLAttribute* templateAttribute = *it3; + foundNode->GetAttributes().Create(*templateAttribute); + } + CLogger::LogPrintf("Added missing '%s' setting to mtaserver.conf\n", templateNodeName.c_str()); configChanged = true; }