Changeset - r6612:f4fb4b87238a
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2007-05-13 22:10:04
rubidium@openttd.org
(svn r9832) -Fix: leave the station when manually skipping to the next order and we are currently (un)loading.
1 file changed with 6 insertions and 4 deletions:
0 comments (0 inline, 0 general)
src/order_cmd.cpp
Show inline comments
 
@@ -583,10 +583,12 @@ int32 CmdSkipOrder(TileIndex tile, uint3
 

	
 
		if (v->type == VEH_ROAD) ClearSlot(v);
 

	
 
		/* NON-stop flag is misused to see if a train is in a station that is
 
		 * on his order list or not */
 
		if (v->current_order.type == OT_LOADING && HASBIT(v->current_order.flags, OFB_NON_STOP))
 
			v->current_order.flags = 0;
 
		if (v->current_order.type == OT_LOADING) {
 
			v->LeaveStation();
 
			/* NON-stop flag is misused to see if a train is in a station that is
 
			 * on his order list or not */
 
			if (HASBIT(v->current_order.flags, OFB_NON_STOP)) v->current_order.flags = 0;
 
		}
 

	
 
		InvalidateVehicleOrder(v);
 
	}
0 comments (0 inline, 0 general)