Skip to content

Commit

Permalink
Fix convoys to regions with coasts
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliveriver committed Sep 19, 2024
1 parent 396ed8a commit 0504ea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/Adjudication/Validation/ConvoyPathValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ private class DepthFirstConvoySearch(List<Convoy> convoys, AdjacencyValidator ad

public List<Convoy> GetPossibleConvoys(Unit unit, Location location, Location destination)
{
if (adjacencyValidator.IsValidDirectMove(unit, location, destination))
if (adjacencyValidator.IsValidDirectMove(unit, location, destination, allowDestinationChild: true))
{
if (location == convoys.FirstOrDefault()?.Midpoint)
{
Expand Down

0 comments on commit 0504ea7

Please sign in to comment.