(svn r9832) -Fix: leave the station when manually skipping to the next order and we are currently (un)loading.

pull/155/head
rubidium 17 years ago
parent 5ae882a184
commit 29ebda5b15

@ -583,10 +583,12 @@ int32 CmdSkipOrder(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
if (v->type == VEH_ROAD) ClearSlot(v); if (v->type == VEH_ROAD) ClearSlot(v);
/* NON-stop flag is misused to see if a train is in a station that is if (v->current_order.type == OT_LOADING) {
* on his order list or not */ v->LeaveStation();
if (v->current_order.type == OT_LOADING && HASBIT(v->current_order.flags, OFB_NON_STOP)) /* NON-stop flag is misused to see if a train is in a station that is
v->current_order.flags = 0; * on his order list or not */
if (HASBIT(v->current_order.flags, OFB_NON_STOP)) v->current_order.flags = 0;
}
InvalidateVehicleOrder(v); InvalidateVehicleOrder(v);
} }

Loading…
Cancel
Save