File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Server/mods/deathmatch/logic Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -916,7 +916,7 @@ bool CMainConfig::AddMissingSettings()
916
916
CXMLAttribute* templateAttribute = *it3;
917
917
const SString& attrName = templateAttribute->GetName ();
918
918
919
- // Don't check value attribute which is intended to be different
919
+ // Don't check value attribute which is intended to be customized by the server
920
920
if (attrName == " value" )
921
921
continue ;
922
922
@@ -946,6 +946,12 @@ bool CMainConfig::AddMissingSettings()
946
946
foundNode->SetTagContent (templateNodeValue.c_str ());
947
947
foundNode->SetCommentText (templateNodeComment.c_str (), true );
948
948
949
+ for (auto it3 = templateAttributes.ListBegin (); it3 != templateAttributes.ListEnd (); ++it3)
950
+ {
951
+ CXMLAttribute* templateAttribute = *it3;
952
+ foundNode->GetAttributes ().Create (*templateAttribute);
953
+ }
954
+
949
955
CLogger::LogPrintf (" Added missing '%s' setting to mtaserver.conf\n " , templateNodeName.c_str ());
950
956
configChanged = true ;
951
957
}
You can’t perform that action at this time.
0 commit comments