3D Floor Mode: fixed a typo in an error message

3D Floor Mode: only 3D floors with the "user_managed_3d_floor" field set to true will be modified in UDMF maps
This commit is contained in:
biwa 2021-04-22 18:45:28 +02:00
parent 547aec7541
commit d0f45982c1
2 changed files with 5 additions and 1 deletions

View file

@ -769,6 +769,10 @@ namespace CodeImp.DoomBuilder.ThreeDFloorMode
// Build a dictionary of tags used by 3D floor action and which control sector they belong to
foreach (Linedef ld in General.Map.Map.Linedefs)
{
// Make sure the front sector is managed by the 3D floor plugin
if (ld.Front == null || ld.Front.Sector == null || ld.Front.Sector.IsDisposed || (General.Map.UDMF && ld.Front.Sector.Fields.GetValue("user_managed_3d_floor", false) == false))
continue;
if (ld.Action == 160 && ld.Args[0] != 0)
{
if (!tags.ContainsKey(ld.Args[0]))

View file

@ -1533,7 +1533,7 @@ namespace CodeImp.DoomBuilder.ThreeDFloorMode
{
if (tdf.Sector.BBox.Width > BuilderPlug.Me.ControlSectorArea.SectorSize || tdf.Sector.BBox.Height > BuilderPlug.Me.ControlSectorArea.SectorSize)
{
General.Interface.DisplayStatus(StatusType.Warning, string.Format("Control sector {0} exceeds horizontal or vertical dimenstion of {1}. Aborted", tdf.Sector.Index, BuilderPlug.Me.ControlSectorArea.SectorSize));
General.Interface.DisplayStatus(StatusType.Warning, string.Format("Control sector {0} exceeds horizontal or vertical dimension of {1}. Aborted", tdf.Sector.Index, BuilderPlug.Me.ControlSectorArea.SectorSize));
return;
}
}