mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-18 22:41:46 +00:00
Fixed crash when undo was used after Linedef drag (which involves a merge)
This commit is contained in:
parent
7a31c07eec
commit
d46b5cb4e3
3 changed files with 4 additions and 4 deletions
|
@ -705,7 +705,7 @@ namespace CodeImp.DoomBuilder.Map
|
|||
nl = map.CreateLinedef(v, end);
|
||||
CopyPropertiesTo(nl);
|
||||
SetEndVertex(v);
|
||||
nl.selected = this.selected;
|
||||
nl.Selected = this.Selected;
|
||||
nl.marked = this.marked;
|
||||
|
||||
// Copy front sidedef if exists
|
||||
|
@ -902,7 +902,7 @@ namespace CodeImp.DoomBuilder.Map
|
|||
}
|
||||
|
||||
// If either of the two lines was selected, keep the other selected
|
||||
if(this.selected) other.selected = true;
|
||||
if(this.Selected) other.Selected = true;
|
||||
if(this.marked) other.marked = true;
|
||||
|
||||
// I got killed by the other.
|
||||
|
|
|
@ -39,7 +39,7 @@ namespace CodeImp.DoomBuilder.Map
|
|||
#region ================== Variables
|
||||
|
||||
// Selected or not?
|
||||
protected bool selected;
|
||||
private bool selected;
|
||||
|
||||
// Group bitmask
|
||||
private int groups;
|
||||
|
|
|
@ -253,7 +253,7 @@ namespace CodeImp.DoomBuilder.Map
|
|||
public void Join(Vertex other)
|
||||
{
|
||||
// If either of the two vertices was selected, keep the other selected
|
||||
if(this.selected) other.selected = true;
|
||||
if(this.Selected) other.Selected = true;
|
||||
if(this.marked) other.marked = true;
|
||||
|
||||
// Any linedefs to move?
|
||||
|
|
Loading…
Reference in a new issue