@@ -1235,6 +1235,7 @@ static void BuildRiver(TileIndex begin, TileIndex end)
|
|||||||
finder.EndNodeCheck = River_EndNodeCheck;
|
finder.EndNodeCheck = River_EndNodeCheck;
|
||||||
finder.FoundEndNode = River_FoundEndNode;
|
finder.FoundEndNode = River_FoundEndNode;
|
||||||
finder.user_target = &end;
|
finder.user_target = &end;
|
||||||
|
finder.max_search_nodes = AYSTAR_DEF_MAX_SEARCH_NODES;
|
||||||
|
|
||||||
finder.Init(1 << RIVER_HASH_SIZE);
|
finder.Init(1 << RIVER_HASH_SIZE);
|
||||||
|
|
||||||
|
|||||||
@@ -315,7 +315,4 @@ void AyStar::Init(uint num_buckets)
|
|||||||
* When that one gets full it reserves another one, till this number
|
* When that one gets full it reserves another one, till this number
|
||||||
* That is why it can stay this high */
|
* That is why it can stay this high */
|
||||||
this->openlist_queue.Init(102400);
|
this->openlist_queue.Init(102400);
|
||||||
|
|
||||||
/* Set a reasonable default limit */
|
|
||||||
this->max_search_nodes = AYSTAR_DEF_MAX_SEARCH_NODES;
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user