equal
deleted
inserted
replaced
1109 NPFFindStationOrTileData fstd; |
1109 NPFFindStationOrTileData fstd; |
1110 byte trackdir = GetVehicleTrackdir(v); |
1110 byte trackdir = GetVehicleTrackdir(v); |
1111 assert(trackdir != 0xFF); |
1111 assert(trackdir != 0xFF); |
1112 |
1112 |
1113 fstd.dest_coords = tile; |
1113 fstd.dest_coords = tile; |
1114 fstd.station_index = -1; // indicates that the destination is a tile, not a station |
1114 fstd.station_index = INVALID_STAION; // indicates that the destination is a tile, not a station |
1115 |
1115 |
1116 return NPFRouteToStationOrTile(v->tile, trackdir, &fstd, TRANSPORT_ROAD, v->owner, INVALID_RAILTYPE).best_path_dist; |
1116 return NPFRouteToStationOrTile(v->tile, trackdir, &fstd, TRANSPORT_ROAD, v->owner, INVALID_RAILTYPE).best_path_dist; |
1117 } |
1117 } |
1118 #endif |
1118 #endif |
1119 |
1119 |