mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-18 22:41:46 +00:00
@ Removed unique key check in configurations: Setting with the same name now just overrides the previous.
This commit is contained in:
parent
fbfd57dec3
commit
a9ef78d33f
1 changed files with 8 additions and 3 deletions
|
@ -460,6 +460,7 @@ namespace CodeImp.DoomBuilder.IO
|
|||
// Check if we can test existance
|
||||
if(container != null)
|
||||
{
|
||||
/*
|
||||
// Test if the key exists in this container
|
||||
if(container.Contains(key) == true)
|
||||
{
|
||||
|
@ -468,6 +469,7 @@ namespace CodeImp.DoomBuilder.IO
|
|||
validateresult = false;
|
||||
}
|
||||
else
|
||||
*/
|
||||
{
|
||||
// Key OK
|
||||
validateresult = true;
|
||||
|
@ -984,7 +986,10 @@ namespace CodeImp.DoomBuilder.IO
|
|||
IDictionary cs2;
|
||||
if(cs is ListDictionary) cs2 = new ListDictionary(); else cs2 = new Hashtable();
|
||||
InputStructure(cs2, ref file, ref data, ref pos, ref line);
|
||||
cs.Add(key.Trim(), cs2);
|
||||
if(cs.Contains(key.Trim()))
|
||||
cs[key.Trim()] = Combine(cs, cs2, (cs is ListDictionary));
|
||||
else
|
||||
cs.Add(key.Trim(), cs2);
|
||||
key = "";
|
||||
}
|
||||
break;
|
||||
|
@ -1008,7 +1013,7 @@ namespace CodeImp.DoomBuilder.IO
|
|||
object val = ParseAssignment(ref file, ref data, ref pos, ref line);
|
||||
if(!cpErrorResult)
|
||||
{
|
||||
cs.Add(key.Trim(), val);
|
||||
cs[key.Trim()] = val;
|
||||
key = "";
|
||||
}
|
||||
}
|
||||
|
@ -1022,7 +1027,7 @@ namespace CodeImp.DoomBuilder.IO
|
|||
if(ValidateKey(cs, key.Trim(), file, line))
|
||||
{
|
||||
// Add the key with null as value
|
||||
cs.Add(key.Trim(), null);
|
||||
cs[key.Trim()] = null;
|
||||
key = "";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue