Map element associations: fixed a problem where things that have a argument of type tag set to 0 were referencing all things with tag 0. Fixes #718

This commit is contained in:
biwa 2022-04-09 19:14:46 +02:00
parent 98d32f7946
commit f8e0f0b25b

View file

@ -550,7 +550,8 @@ namespace CodeImp.DoomBuilder.BuilderModes
{ {
for (int i = 0; i < Linedef.NUM_ARGS; i++) for (int i = 0; i < Linedef.NUM_ARGS; i++)
{ {
if ((ti.Args[i].Type == (int)UniversalType.SectorTag || if (actionargs[i] != 0 && // Ignore all args that reference tag 0, since that are likely the majority of all elements
(ti.Args[i].Type == (int)UniversalType.SectorTag ||
ti.Args[i].Type == (int)UniversalType.LinedefTag || ti.Args[i].Type == (int)UniversalType.LinedefTag ||
ti.Args[i].Type == (int)UniversalType.ThingTag)) ti.Args[i].Type == (int)UniversalType.ThingTag))
{ {