mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 12:22:35 +00:00
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:
parent
547aec7541
commit
d0f45982c1
2 changed files with 5 additions and 1 deletions
|
@ -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
|
// 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)
|
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 (ld.Action == 160 && ld.Args[0] != 0)
|
||||||
{
|
{
|
||||||
if (!tags.ContainsKey(ld.Args[0]))
|
if (!tags.ContainsKey(ld.Args[0]))
|
||||||
|
|
|
@ -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)
|
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;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue