src/npf.cpp
changeset 6247 7d81e3a5d803
parent 6154 8f4c65bdf930
child 6259 471b91a4b1d8
equal deleted inserted replaced
6246:75451000349d 6247:7d81e3a5d803
   867 		DEBUG(npf, 1, "Could not find route to any depot from tile 0x%X.", tile);
   867 		DEBUG(npf, 1, "Could not find route to any depot from tile 0x%X.", tile);
   868 	}
   868 	}
   869 	return best_result;
   869 	return best_result;
   870 }
   870 }
   871 
   871 
   872 void InitializeNPF(void)
   872 void InitializeNPF()
   873 {
   873 {
   874 	init_AyStar(&_npf_aystar, NPFHash, NPF_HASH_SIZE);
   874 	init_AyStar(&_npf_aystar, NPFHash, NPF_HASH_SIZE);
   875 	_npf_aystar.loops_per_tick = 0;
   875 	_npf_aystar.loops_per_tick = 0;
   876 	_npf_aystar.max_path_cost = 0;
   876 	_npf_aystar.max_path_cost = 0;
   877 	//_npf_aystar.max_search_nodes = 0;
   877 	//_npf_aystar.max_search_nodes = 0;