equal
deleted
inserted
replaced
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; |