mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-18 14:31:50 +00:00
Added safeguard to MapSet.NearestLinedefRange if selectionmap is null. Might fix #529.
This commit is contained in:
parent
467f791bd3
commit
b168570241
1 changed files with 3 additions and 0 deletions
|
@ -3401,6 +3401,9 @@ namespace CodeImp.DoomBuilder.Map
|
|||
/// <summary>This finds the line closest to the specified position.</summary>
|
||||
public static Linedef NearestLinedefRange(BlockMap<BlockEntry> selectionmap, Vector2D pos, double maxrange) //mxd
|
||||
{
|
||||
if (selectionmap == null)
|
||||
return null;
|
||||
|
||||
Linedef closest = null;
|
||||
double distance = double.MaxValue;
|
||||
double maxrangesq = maxrange * maxrange;
|
||||
|
|
Loading…
Reference in a new issue