mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2025-02-10 09:41:22 +00:00
Fix error that prevented dragging a single unselected map element
This commit is contained in:
parent
53ca8efc6a
commit
c3d4363b94
4 changed files with 4 additions and 4 deletions
|
@ -1152,7 +1152,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
}
|
||||
}
|
||||
|
||||
if(unaffectedCount == selectedlines.Count)
|
||||
if(unaffectedCount > 0 && unaffectedCount == selectedlines.Count)
|
||||
{
|
||||
General.Interface.DisplayStatus(StatusType.Warning, "Unable to drag selection: " + (selectedlines.Count == 1 ? "selected linedef is" : "all of selected linedefs are") + " outside of map boundary!");
|
||||
General.Interface.RedrawDisplay();
|
||||
|
|
|
@ -1344,7 +1344,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
}
|
||||
}
|
||||
|
||||
if(unaffectedCount == selectedsectors.Count)
|
||||
if(unaffectedCount > 0 && unaffectedCount == selectedsectors.Count)
|
||||
{
|
||||
General.Interface.DisplayStatus(StatusType.Warning, "Unable to drag selection: " + (selectedsectors.Count == 1 ? "selected sector is" : "all of selected sectors are") + " outside of map boundary!");
|
||||
General.Interface.RedrawDisplay();
|
||||
|
|
|
@ -825,7 +825,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
}
|
||||
}
|
||||
|
||||
if(unaffectedCount == selectedthings.Count)
|
||||
if(unaffectedCount > 0 && unaffectedCount == selectedthings.Count)
|
||||
{
|
||||
General.Interface.DisplayStatus(StatusType.Warning, "Unable to drag selection: " + (selectedthings.Count == 1 ? "selected thing is" : "all of selected things are") + " outside of map boundary!");
|
||||
General.Interface.RedrawDisplay();
|
||||
|
|
|
@ -661,7 +661,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
}
|
||||
}
|
||||
|
||||
if(unaffectedCount == selectedverts.Count)
|
||||
if(unaffectedCount > 0 && unaffectedCount == selectedverts.Count)
|
||||
{
|
||||
General.Interface.DisplayStatus(StatusType.Warning, "Unable to drag selection: " + (selectedverts.Count == 1 ? "selected vertex is" : "all of selected vertices are") + " outside of map boundary!");
|
||||
General.Interface.RedrawDisplay();
|
||||
|
|
Loading…
Reference in a new issue