src/npf.cpp
changeset 6573 7624f942237f
parent 6480 767cfeae4dbf
child 6585 7da94b26498a
equal deleted inserted replaced
6572:e35266003390 6573:7624f942237f
   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;