Sectors Mode: fixed a problem where things were not selected correctly when synchronized thing edit was enabled

This commit is contained in:
biwa 2020-11-22 18:19:47 +01:00
parent c5054c5449
commit bb7cf59a65

View file

@ -590,14 +590,12 @@ namespace CodeImp.DoomBuilder.BuilderModes
{
foreach(Thing t in be.Things)
{
if (t.Sector == null)
t.DetermineSector(blockmap);
// Always determine the thing's current sector because it might have change since the last determination
t.DetermineSector(blockmap);
if (t.Sector == s && t.Selected != s.Selected) t.Selected = s.Selected;
}
}
//foreach(Thing t in General.Map.Map.Things)
// if(t.Sector == s && t.Selected != s.Selected) t.Selected = s.Selected;
}
if(update)
@ -836,8 +834,8 @@ namespace CodeImp.DoomBuilder.BuilderModes
{
foreach (Thing t in be.Things)
{
if (t.Sector == null)
t.DetermineSector(blockmap);
// Always determine the thing's current sector because it might have change since the last determination
t.DetermineSector(blockmap);
if (t.Sector == s && t.Selected != s.Selected) t.Selected = s.Selected;
}