File diff r7089:ae02e9809484 → r7090:3c54fd0b780a
src/npf.cpp
Show inline comments
 
@@ -877,7 +877,13 @@ NPFFoundTargetData NPFRouteToDepotTrialE
 

	
 
void InitializeNPF()
 
{
 
	init_AyStar(&_npf_aystar, NPFHash, NPF_HASH_SIZE);
 
	static bool first_init = true;
 
	if (first_init) {
 
		first_init = false;
 
		init_AyStar(&_npf_aystar, NPFHash, NPF_HASH_SIZE);
 
	} else {
 
		AyStarMain_Clear(&_npf_aystar);
 
	}
 
	_npf_aystar.loops_per_tick = 0;
 
	_npf_aystar.max_path_cost = 0;
 
	//_npf_aystar.max_search_nodes = 0;