(svn r9756) -Fix [FS#755]: LeaveStation wasn't always called when a station was left.
This commit is contained in:
		@@ -3448,6 +3448,8 @@ static void CheckIfTrainNeedsService(Vehicle *v)
 | 
			
		||||
		return;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (v->current_order.type == OT_LOADING) v->LeaveStation();
 | 
			
		||||
 | 
			
		||||
	v->current_order.type = OT_GOTO_DEPOT;
 | 
			
		||||
	v->current_order.flags = OF_NON_STOP;
 | 
			
		||||
	v->current_order.dest = depot->index;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user