src/npf.cpp
changeset 8707 55835d8fbfcd
parent 8693 3d721429cc4f
child 8732 b18f578f7c16
equal deleted inserted replaced
8706:e76561c3dd66 8707:55835d8fbfcd
    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