(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:
matthijs
2005-05-23 19:00:16 +00:00
parent 5e040110fc
commit a2f691b24a
3 changed files with 1 additions and 16 deletions

View File

@@ -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)