From a51366131cdab4e2be1cd38ceb756d3e6609425b Mon Sep 17 00:00:00 2001 From: spherallic Date: Mon, 11 Sep 2023 02:13:14 +0200 Subject: [PATCH] Fix string arguments not being copied/pasted as a property --- .../Plugins/BuilderModes/General/CopyStructures.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Source/Plugins/BuilderModes/General/CopyStructures.cs b/Source/Plugins/BuilderModes/General/CopyStructures.cs index 4db843be..24c22821 100755 --- a/Source/Plugins/BuilderModes/General/CopyStructures.cs +++ b/Source/Plugins/BuilderModes/General/CopyStructures.cs @@ -694,7 +694,9 @@ namespace CodeImp.DoomBuilder.BuilderModes // Apply string arguments if(settings.Arguments) { - Apply(l.Fields, "arg0str"); + //Apply(l.Fields, "arg0str"); + Apply(l.Fields, "stringarg0"); + Apply(l.Fields, "stringarg1"); //TODO: re-enable when UI part is ready //Apply(l.Fields, "arg1str"); @@ -870,7 +872,9 @@ namespace CodeImp.DoomBuilder.BuilderModes // Apply string arguments if(settings.Arguments) { - Apply(t.Fields, "arg0str"); + //Apply(t.Fields, "arg0str"); + Apply(t.Fields, "stringarg0"); + Apply(t.Fields, "stringarg1"); //TODO: re-enable when UI part is ready //Apply(t.Fields, "arg1str"); @@ -976,6 +980,8 @@ namespace CodeImp.DoomBuilder.BuilderModes if(!UniFields.ValuesMatch("arg2str", source, target)) return false; if(!UniFields.ValuesMatch("arg3str", source, target)) return false; if(!UniFields.ValuesMatch("arg4str", source, target)) return false; + if (!UniFields.ValuesMatch("stringarg0", source, target)) return false; + if (!UniFields.ValuesMatch("stringarg1", source, target)) return false; } } if(linedefflags.Flags && !FlagsMatch(source.GetEnabledFlags(), target.GetEnabledFlags())) return false; @@ -1044,6 +1050,8 @@ namespace CodeImp.DoomBuilder.BuilderModes if(!UniFields.ValuesMatch("arg2str", source, target)) return false; if(!UniFields.ValuesMatch("arg3str", source, target)) return false; if(!UniFields.ValuesMatch("arg4str", source, target)) return false; + if (!UniFields.ValuesMatch("stringarg0", source, target)) return false; + if (!UniFields.ValuesMatch("stringarg1", source, target)) return false; } } if(flags.Tag && source.Tag != target.Tag) return false;