ship_cmd.c
changeset 2916 8f1aa489701f
parent 2854 6b85a5f4b65f
child 2962 dbd168a4703a
equal deleted inserted replaced
2915:c59cbb76b5b2 2916:8f1aa489701f
   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