mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-10-31 15:20:10 +00:00
parent
96570dc869
commit
60378323ea
@ -1235,6 +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.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
|
||||
* That is why it can stay this high */
|
||||
this->openlist_queue.Init(102400);
|
||||
|
||||
/* Set a reasonable default limit */
|
||||
this->max_search_nodes = AYSTAR_DEF_MAX_SEARCH_NODES;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user