forked from mirror/OpenTTD
(svn r2363) - Codechange: [NPF] Removed caching the endnode check. The code for this was buggy, fundamentally flawed and barely useful. (Hackykid)
This commit is contained in:
@@ -52,7 +52,7 @@ static void DrawOrdersWindow(Window *w)
|
||||
|
||||
shared_orders = IsOrderListShared(v);
|
||||
|
||||
if ((uint)v->num_orders + shared_orders <= (uint)WP(w,order_d).sel)
|
||||
if ((uint)v->num_orders + (shared_orders?1:0) <= (uint)WP(w,order_d).sel)
|
||||
SETBIT(w->disabled_state, 5); /* delete */
|
||||
|
||||
if (v->num_orders == 0)
|
||||
|
Reference in New Issue
Block a user