Commit d0672b38 authored by Mikleo's avatar Mikleo
Browse files

editingset fixes

parent 8f89700e
Pipeline #13000 passed with stages
in 16 seconds
......@@ -10,7 +10,7 @@
#include <SteamWorks>
#define PluginVersion "1.42"
#define PluginVersion "1.43"
float pVersion;
// note linearmap field is unstable
......@@ -3880,11 +3880,13 @@ LoadEditingSet(KeyValues kv)
do
{
kv.GetSectionName(classnameBuffer, sizeof(classnameBuffer));
kv.GetString(classnameBuffer,valueBuffer,sizeof(valueBuffer));
// use null_string on the current key
kv.GetString(NULL_STRING,valueBuffer,sizeof(valueBuffer));
if(StrEqual(valueBuffer,"yes",false))
scenarioEditingSet.SetValue(classnameBuffer,1);
else if(StrEqual(valueBuffer,"no",false))
scenarioEditingSet.SetValue(classnameBuffer,-1);
} while (kv.GotoNextKey(false));
......@@ -4925,7 +4927,8 @@ bool ShouldSave(int entity,char[] classname,any[] classInfo)
int editingSetValue = EditingSetValue(classname);
if(editingSetValue == -1)
// if not custom entity and set to "no"
if(!classInfo[data_customOnly] && editingSetValue == -1)
return false;
// if the entity is customonly, don't save any non-custom entities.
......
......@@ -4,7 +4,7 @@
{
"Version"
{
"Latest" "1.42"
"Latest" "1.43"
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment