Increase river pathfinding node limit

This commit is contained in:
Jonathan G Rennison 2024-02-19 20:51:58 +00:00
parent d512602369
commit fc2f746b80

View File

@ -1235,7 +1235,7 @@ static void BuildRiver(TileIndex begin, TileIndex end)
finder.EndNodeCheck = River_EndNodeCheck;
finder.FoundEndNode = River_FoundEndNode;
finder.user_target = &end;
finder.max_search_nodes = AYSTAR_DEF_MAX_SEARCH_NODES;
finder.max_search_nodes = 100 * AYSTAR_DEF_MAX_SEARCH_NODES;
finder.Init(1 << RIVER_HASH_SIZE);