src/roadveh_cmd.cpp
changeset 8848 635cb164edd4
parent 8843 45fdf630deaa
child 8853 3266f0374302
equal deleted inserted replaced
8847:426dd2d582e7 8848:635cb164edd4
  1927 		}
  1927 		}
  1928 		return;
  1928 		return;
  1929 	}
  1929 	}
  1930 
  1930 
  1931 	if (v->current_order.IsType(OT_GOTO_DEPOT) &&
  1931 	if (v->current_order.IsType(OT_GOTO_DEPOT) &&
  1932 			v->current_order.GetNonStopType() & OFB_NON_STOP &&
  1932 			v->current_order.GetNonStopType() & ONSF_NO_STOP_AT_INTERMEDIATE_STATIONS &&
  1933 			!Chance16(1, 20)) {
  1933 			!Chance16(1, 20)) {
  1934 		return;
  1934 		return;
  1935 	}
  1935 	}
  1936 
  1936 
  1937 	if (v->current_order.IsType(OT_LOADING)) v->LeaveStation();
  1937 	if (v->current_order.IsType(OT_LOADING)) v->LeaveStation();