@ -1801,6 +1801,7 @@ static bool CheckTrainStayInDepot(Vehicle *v)
return false ;
return false ;
if ( v - > u . rail . force_proceed = = 0 ) {
if ( v - > u . rail . force_proceed = = 0 ) {
byte trackdir = GetVehicleTrackdir ( v ) ;
if ( + + v - > load_unload_time_rem < 37 ) {
if ( + + v - > load_unload_time_rem < 37 ) {
InvalidateWindowClasses ( WC_TRAINS_LIST ) ;
InvalidateWindowClasses ( WC_TRAINS_LIST ) ;
return true ;
return true ;
@ -1808,8 +1809,7 @@ static bool CheckTrainStayInDepot(Vehicle *v)
v - > load_unload_time_rem = 0 ;
v - > load_unload_time_rem = 0 ;
if ( PBSIsPbsDepot ( v - > tile ) ) {
if ( PBSIsPbsSegment ( v - > tile , trackdir ) ) {
byte trackdir = GetVehicleTrackdir ( v ) ;
NPFFindStationOrTileData fstd ;
NPFFindStationOrTileData fstd ;
NPFFoundTargetData ftd ;
NPFFoundTargetData ftd ;