src/rail_cmd.cpp
changeset 10221 faef62283f5f
parent 10213 23cfd330ccac
child 10222 b6919c94cc77
equal deleted inserted replaced
10220:56a37f555175 10221:faef62283f5f
  2266 	byte fract_coord_leave;
  2266 	byte fract_coord_leave;
  2267 	DiagDirection dir;
  2267 	DiagDirection dir;
  2268 	int length;
  2268 	int length;
  2269 
  2269 
  2270 	/* this routine applies only to trains in depot tiles */
  2270 	/* this routine applies only to trains in depot tiles */
  2271 	if (v->type != VEH_TRAIN || !IsDepotTypeTile(tile, TRANSPORT_RAIL)) return VETSB_CONTINUE;
  2271 	if (v->type != VEH_TRAIN || !IsRailDepotTile(tile)) return VETSB_CONTINUE;
  2272 
  2272 
  2273 	/* depot direction */
  2273 	/* depot direction */
  2274 	dir = GetRailDepotDirection(tile);
  2274 	dir = GetRailDepotDirection(tile);
  2275 
  2275 
  2276 	/* calculate the point where the following wagon should be activated */
  2276 	/* calculate the point where the following wagon should be activated */