Fix mistake in non-essential linedef check.

This commit is contained in:
spherallic 2022-03-04 21:13:27 +01:00
parent f3e9210a5c
commit 953312482d

View file

@ -1208,7 +1208,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
ICollection<Linedef> selected = General.Map.Map.GetSelectedLinedefs(true);
foreach (Linedef ld in selected)
{
if (ld.Back != null && ld.Front.Sector == ld.Back.Sector && ld.Action != 0)
if (ld.Back != null && ld.Front.Sector == ld.Back.Sector && ld.Action == 0)
counter++;
else
ld.Selected = false;