roadveh_cmd.c
changeset 2952 6a26eeda9679
parent 2951 2db3adee7736
child 2953 310f58987d7b
equal deleted inserted replaced
2951:2db3adee7736 2952:6a26eeda9679
   319 		RoadFindDepotData rfdd;
   319 		RoadFindDepotData rfdd;
   320 		rfdd.owner = v->owner;
   320 		rfdd.owner = v->owner;
   321 		rfdd.best_length = (uint)-1;
   321 		rfdd.best_length = (uint)-1;
   322 
   322 
   323 		/* search in all directions */
   323 		/* search in all directions */
   324 		for(i=0; i!=4; i++)
   324 		for (i = 0; i != 4; i++)
   325 			FollowTrack(tile, 0x2000 | TRANSPORT_ROAD, i, (TPFEnumProc*)EnumRoadSignalFindDepot, NULL, &rfdd);
   325 			FollowTrack(tile, 0x2000 | TRANSPORT_ROAD, i, (TPFEnumProc*)EnumRoadSignalFindDepot, NULL, &rfdd);
   326 
   326 
   327 		if (rfdd.best_length == (uint)-1)
   327 		if (rfdd.best_length == (uint)-1)
   328 			return NULL;
   328 			return NULL;
   329 
   329