Mercurial > hg > openttd
changeset 5984:7ee7ed10a943 draft
(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.
author | bjarni <bjarni@openttd.org> |
---|---|
date | Mon, 12 Feb 2007 00:38:15 +0000 |
parents | 03539ad8e0b5 |
children | 34cb8ae8ab20 |
files | src/order_gui.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -94,7 +94,7 @@ /* 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);