mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-29 23:22:32 +00:00
Fixed rare potential crash when raising/lowering floors/ceiling to the closed neighbor
This commit is contained in:
parent
a373421abd
commit
ff5cea7ba3
1 changed files with 8 additions and 8 deletions
|
@ -2457,12 +2457,12 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
if (target.picked is VisualFloor)
|
||||
{
|
||||
VisualFloor vf = (VisualFloor)target.picked;
|
||||
floors.Add(vf.Level.sector, vf);
|
||||
floors[vf.Level.sector] = vf;
|
||||
}
|
||||
else if (target.picked is VisualCeiling)
|
||||
{
|
||||
VisualCeiling vc = (VisualCeiling)target.picked;
|
||||
ceilings.Add(vc.Level.sector, vc);
|
||||
ceilings[vc.Level.sector] = vc;
|
||||
}
|
||||
else if (target.picked is BaseVisualThing)
|
||||
{
|
||||
|
@ -2476,12 +2476,12 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
if (i is VisualFloor)
|
||||
{
|
||||
VisualFloor vf = (VisualFloor)i;
|
||||
floors.Add(vf.Level.sector, vf);
|
||||
floors[vf.Level.sector] = vf;
|
||||
}
|
||||
else if (i is VisualCeiling)
|
||||
{
|
||||
VisualCeiling vc = (VisualCeiling)i;
|
||||
ceilings.Add(vc.Level.sector, vc);
|
||||
ceilings[vc.Level.sector] = vc;
|
||||
}
|
||||
else if (i is BaseVisualThing)
|
||||
{
|
||||
|
@ -2698,12 +2698,12 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
if (target.picked is VisualFloor)
|
||||
{
|
||||
VisualFloor vf = (VisualFloor)target.picked;
|
||||
floors.Add(vf.Level.sector, vf);
|
||||
floors[vf.Level.sector] = vf;
|
||||
}
|
||||
else if (target.picked is VisualCeiling)
|
||||
{
|
||||
VisualCeiling vc = (VisualCeiling)target.picked;
|
||||
ceilings.Add(vc.Level.sector, vc);
|
||||
ceilings[vc.Level.sector] = vc;
|
||||
}
|
||||
else if (target.picked is BaseVisualThing)
|
||||
{
|
||||
|
@ -2717,12 +2717,12 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
if (i is VisualFloor)
|
||||
{
|
||||
VisualFloor vf = (VisualFloor)i;
|
||||
floors.Add(vf.Level.sector, vf);
|
||||
floors[vf.Level.sector] = vf;
|
||||
}
|
||||
else if (i is VisualCeiling)
|
||||
{
|
||||
VisualCeiling vc = (VisualCeiling)i;
|
||||
ceilings.Add(vc.Level.sector, vc);
|
||||
ceilings[vc.Level.sector] = vc;
|
||||
}
|
||||
else if (i is BaseVisualThing)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue