mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-22 20:02:48 +00:00
Merge branch 'master' of git.do.srb2.org:STJr/UltimateZoneBuilder
This commit is contained in:
commit
e94dbf94c9
1 changed files with 21 additions and 3 deletions
|
@ -1056,13 +1056,31 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
List<Thing> sourcethings = new List<Thing>();
|
||||
if (!thingtags.ContainsKey(l.Args[1]) || thingtags[l.Args[1]].Count == 0)
|
||||
break;
|
||||
foreach (Thing thing in thingtags[l.Args[1]])
|
||||
{
|
||||
if (sourcethings.Contains(thing))
|
||||
continue;
|
||||
sourcethings.Add(thing);
|
||||
break;
|
||||
}
|
||||
if (!thingtags.ContainsKey(l.Args[2]) || thingtags[l.Args[2]].Count == 0)
|
||||
break;
|
||||
foreach (Thing thing in thingtags[l.Args[2]])
|
||||
{
|
||||
if (sourcethings.Contains(thing))
|
||||
continue;
|
||||
sourcethings.Add(thing);
|
||||
break;
|
||||
}
|
||||
if (!thingtags.ContainsKey(l.Args[3]) || thingtags[l.Args[3]].Count == 0)
|
||||
break;
|
||||
sourcethings.Add(thingtags[l.Args[1]][0]);
|
||||
sourcethings.Add(thingtags[l.Args[2]][0]);
|
||||
sourcethings.Add(thingtags[l.Args[3]][0]);
|
||||
foreach (Thing thing in thingtags[l.Args[3]])
|
||||
{
|
||||
if (sourcethings.Contains(thing))
|
||||
continue;
|
||||
sourcethings.Add(thing);
|
||||
break;
|
||||
}
|
||||
SectorData sd = GetSectorData((l.Args[0] < 2) ? l.Front.Sector : l.Back.Sector);
|
||||
sd.AddEffectSRB2ThingVertexSlope(sourcethings, (l.Args[0] & 1) != 1);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue