Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Server/mods/deathmatch/logic/CMainConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
}
Expand Down