mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 04:12:12 +00:00
Take sector trigger tag fields into account when looking for new/unused tag
This commit is contained in:
parent
2b627b0e8a
commit
f3e7e80866
1 changed files with 5 additions and 0 deletions
|
@ -3832,6 +3832,9 @@ namespace CodeImp.DoomBuilder.Map
|
|||
if(tag == 0) continue;
|
||||
if(!usedtags.ContainsKey(tag)) usedtags.Add(tag, false);
|
||||
}
|
||||
// SRB2 also has separate trigger tag field
|
||||
int triggertag = sectors[i].Fields.GetValue("triggertag", 0);
|
||||
if (triggertag > 0) usedtags.Add(triggertag, false);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -3923,6 +3926,8 @@ namespace CodeImp.DoomBuilder.Map
|
|||
bool changed = false;
|
||||
// Make a copy of tags, otherwise BeforePropsChange will be triggered after tag changes
|
||||
List<int> tags = new List<int>(s.Tags);
|
||||
// SRB2 also has separate trigger tag field
|
||||
tags.Add(s.Fields.GetValue("triggertag", 0));
|
||||
for(int i = 0; i < tags.Count; i++)
|
||||
{
|
||||
int tag = tags[i];
|
||||
|
|
Loading…
Reference in a new issue