mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-25 22:18:34 +01:00
made AStar.InfiniteCost a const because I don't know why it wasn't one before
This commit is contained in:
parent
7e89efec69
commit
51fbba8731
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ namespace MLEM.Pathfinding {
|
|||
/// <summary>
|
||||
/// A value that represents an infinite path cost, or a cost for a location that cannot possibly be reached.
|
||||
/// </summary>
|
||||
public static readonly float InfiniteCost = float.PositiveInfinity;
|
||||
public const float InfiniteCost = float.PositiveInfinity;
|
||||
/// <summary>
|
||||
/// The array of all directions that will be checked for path finding.
|
||||
/// Note that this array is only used if <see cref="DefaultAllowDiagonals"/> is true.
|
||||
|
|
Loading…
Reference in a new issue