Changeset - r5984:6fdad5823746
[Not reviewed]
master
0 1 0
bjarni - 18 years ago 2007-02-12 00:38:15
bjarni@openttd.org
(svn r8685) -Feature: selecting "end of orders" and clicking delete will delete all the vehicle's orders
If the orders are shared, then it will still unshare the orders like before.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/order_gui.cpp
Show inline comments
 
@@ -94,7 +94,7 @@ static void DrawOrdersWindow(Window *w)
 

	
 
		/* delete */
 
		SetWindowWidgetDisabledState(w, ORDER_WIDGET_DELETE,
 
				(uint)v->num_orders + (shared_orders ? 1 : 0) <= (uint)WP(w, order_d).sel);
 
				(uint)v->num_orders + ((shared_orders || v->num_orders != 0) ? 1 : 0) <= (uint)WP(w, order_d).sel);
 

	
 
		/* non-stop only for trains */
 
		SetWindowWidgetDisabledState(w, ORDER_WIDGET_NON_STOP,  v->type != VEH_Train || order == NULL);
0 comments (0 inline, 0 general)