equal
deleted
inserted
replaced
541 byte trackdir = GetVehicleTrackdir(v); |
541 byte trackdir = GetVehicleTrackdir(v); |
542 assert (trackdir != 0xFF); /* Check that we are not in a depot */ |
542 assert (trackdir != 0xFF); /* Check that we are not in a depot */ |
543 |
543 |
544 NPFFillWithOrderData(&fstd, v); |
544 NPFFillWithOrderData(&fstd, v); |
545 |
545 |
546 ftd = NPFRouteToStationOrTile(src_tile, trackdir, &fstd, TRANSPORT_WATER, v->owner, INVALID_RAILTYPE, PBS_MODE_NONE); |
546 ftd = NPFRouteToStationOrTile(src_tile, trackdir, &fstd, TRANSPORT_WATER, v->owner, INVALID_RAILTYPE); |
547 |
547 |
548 if (ftd.best_trackdir != 0xff) { |
548 if (ftd.best_trackdir != 0xff) { |
549 /* If ftd.best_bird_dist is 0, we found our target and ftd.best_trackdir contains |
549 /* If ftd.best_bird_dist is 0, we found our target and ftd.best_trackdir contains |
550 the direction we need to take to get there, if ftd.best_bird_dist is not 0, |
550 the direction we need to take to get there, if ftd.best_bird_dist is not 0, |
551 we did not find our target, but ftd.best_trackdir contains the direction leading |
551 we did not find our target, but ftd.best_trackdir contains the direction leading |