mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-22 20:02:48 +00:00
Sectors Mode: fixed a problem where things were not selected correctly when synchronized thing edit was enabled
This commit is contained in:
parent
c5054c5449
commit
bb7cf59a65
1 changed files with 4 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue