src/rail_cmd.cpp
changeset 8954 3993bae3bfb8
parent 8806 4fe163e0b52a
child 8961 fb0848956387
equal deleted inserted replaced
8953:fea4aa214d9c 8954:3993bae3bfb8
  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 || !IsTileDepotType(tile, TRANSPORT_RAIL)) return VETSB_CONTINUE;
  2271 	if (v->type != VEH_TRAIN || !IsDepotTypeTile(tile, TRANSPORT_RAIL)) 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 */