Fixed bug which causes a highlighted linedef to be copied even when a selection was made

This commit is contained in:
codeimp 2009-03-23 13:49:17 +00:00
parent 809f6c59ed
commit bc2d36db08

View file

@ -503,7 +503,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
public override bool OnCopyBegin()
{
// No selection made? But we have a highlight!
if((General.Map.Map.GetSelectedSectors(true).Count == 0) && (highlighted != null))
if((General.Map.Map.GetSelectedLinedefs(true).Count == 0) && (highlighted != null))
{
// Make the highlight the selection
highlighted.Selected = true;
@ -516,7 +516,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
public override bool OnPasteBegin()
{
// No selection made? But we have a highlight!
if((General.Map.Map.GetSelectedSectors(true).Count == 0) && (highlighted != null))
if((General.Map.Map.GetSelectedLinedefs(true).Count == 0) && (highlighted != null))
{
// Make the highlight the selection
highlighted.Selected = true;