1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-12-26 10:19:22 +01:00

made AStar.InfiniteCost a const because I don't know why it wasn't one before

This commit is contained in:
Ell 2020-09-16 01:21:37 +02:00
parent 7e89efec69
commit 51fbba8731

View file

@ -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.