mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-26 10:03:45 +00:00
A quick test with get_dist to null shows it returning 127 (the max value it returns). Since Distance_ortho doesn't use get_dist, it doesn't share the distance cap, so I just picked an arbitrary large number. Double fix: If the destination is null, don't even bother pathing, you won't get there anyway. Expected new runtime error: some callers of AStar mignt not be expecting it to return null, even though it already would if it can't find a path, or the source loc is null.