Fixed, Classic modes, Visual mode, UDMF: the last argument of Sector_Set3dFloor (160) action must be ignored in UDMF.

This commit is contained in:
MaxED 2015-07-26 23:35:34 +00:00
parent c6f9146b8b
commit cff3489791
2 changed files with 2 additions and 2 deletions

View file

@ -625,7 +625,7 @@ namespace CodeImp.DoomBuilder.Rendering
{
if(l.Action == 160)
{
int sectortag = (l.Args[1] & 8) != 0 ? l.Args[0] : l.Args[0] + (l.Args[4] << 8);
int sectortag = (General.Map.UDMF || (l.Args[1] & 8) != 0) ? l.Args[0] : l.Args[0] + (l.Args[4] << 8);
if(sectortag != 0) tagList.Add(sectortag);
}
}

View file

@ -934,7 +934,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
if(l.Front != null)
{
//mxd. Added hi-tag/line ID check
int sectortag = (l.Args[1] & (int)Effect3DFloor.FloorTypes.HiTagIsLineID) != 0 ? l.Args[0] : l.Args[0] + (l.Args[4] << 8);
int sectortag = (General.Map.UDMF || (l.Args[1] & (int)Effect3DFloor.FloorTypes.HiTagIsLineID) != 0) ? l.Args[0] : l.Args[0] + (l.Args[4] << 8);
if(sectortags.ContainsKey(sectortag))
{
List<Sector> sectors = sectortags[sectortag];