Changeset - r6613:e90fddeac2fb
[Not reviewed]
master
0 3 0
rubidium - 18 years ago 2007-05-14 08:07:20
rubidium@openttd.org
(svn r9833) -Fix: also 'leave' the station when leaving for automatic servicing.
3 files changed with 5 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/aircraft_cmd.cpp
Show inline comments
 
@@ -719,6 +719,7 @@ static void CheckIfAircraftNeedsService(
 
	if (st->IsValid() && st->airport_tile != 0 && st->Airport()->terminals != NULL) {
 
//		printf("targetairport = %d, st->index = %d\n", v->u.air.targetairport, st->index);
 
//		v->u.air.targetairport = st->index;
 
		if (v->current_order.type == OT_LOADING) v->LeaveStation();
 
		v->current_order.type = OT_GOTO_DEPOT;
 
		v->current_order.flags = OF_NON_STOP;
 
		InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, STATUS_BAR);
src/roadveh_cmd.cpp
Show inline comments
 
@@ -1686,6 +1686,9 @@ static void CheckIfRoadVehNeedsService(V
 
		return;
 
	}
 

	
 
	if (v->current_order.type == OT_LOADING) v->LeaveStation();
 
	ClearSlot(v);
 

	
 
	v->current_order.type = OT_GOTO_DEPOT;
 
	v->current_order.flags = OF_NON_STOP;
 
	v->current_order.dest = depot->index;
src/ship_cmd.cpp
Show inline comments
 
@@ -165,6 +165,7 @@ static void CheckIfShipNeedsService(Vehi
 
		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;
0 comments (0 inline, 0 general)