Changeset - r882:7d4e4ebc27be
[Not reviewed]
master
0 1 0
matthijs - 20 years ago 2005-01-04 00:54:12
matthijs@openttd.org
(svn r1367) -Fix: Full-Loading trains no longer get "lost" after a while (Hackykid)
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
train_cmd.c
Show inline comments
 
@@ -1715,12 +1715,13 @@ static void HandleTrainLoading(Vehicle *
 
			v->u.rail.days_since_order_progr = 0;
 

	
 
		if (--v->load_unload_time_rem)
 
			return;
 

	
 
		if (v->current_order.flags & OF_FULL_LOAD && CanFillVehicle(v)) {
 
			v->u.rail.days_since_order_progr = 0; /* Prevent a train lost message for full loading trains */
 
			SET_EXPENSES_TYPE(EXPENSES_TRAIN_INC);
 
			if (LoadUnloadVehicle(v)) {
 
				InvalidateWindow(WC_TRAINS_LIST, v->owner);
 
				MarkTrainDirty(v);
 

	
 
				// need to update acceleration since the goods on the train changed.
0 comments (0 inline, 0 general)