src/npf.cpp
changeset 8211 29a8510dfd62
parent 8197 3af783256580
child 8236 8a5dd0b42e47
equal deleted inserted replaced
8210:cc873256f63a 8211:29a8510dfd62
    19 #include "network/network.h"
    19 #include "network/network.h"
    20 #include "water_map.h"
    20 #include "water_map.h"
    21 #include "tunnelbridge_map.h"
    21 #include "tunnelbridge_map.h"
    22 #include "functions.h"
    22 #include "functions.h"
    23 #include "vehicle_base.h"
    23 #include "vehicle_base.h"
       
    24 #include "settings_type.h"
    24 
    25 
    25 static AyStar _npf_aystar;
    26 static AyStar _npf_aystar;
    26 
    27 
    27 /* The cost of each trackdir. A diagonal piece is the full NPF_TILE_LENGTH,
    28 /* The cost of each trackdir. A diagonal piece is the full NPF_TILE_LENGTH,
    28  * the shorter piece is sqrt(2)/2*NPF_TILE_LENGTH =~ 0.7071
    29  * the shorter piece is sqrt(2)/2*NPF_TILE_LENGTH =~ 0.7071