# HG changeset patch # User truelight # Date 1106485681 0 # Node ID 6c05bdeb9d41694b51edb4baee3f5e8d1a8d0f9b # Parent 29c55f462a183c18b69f038faf9e72d60dc89b70 (svn r1609) -Codechange: converted the last order-loop with FOR_VEHICLE_ORDERS diff -r 29c55f462a18 -r 6c05bdeb9d41 ship_gui.c --- a/ship_gui.c Sun Jan 23 12:04:40 2005 +0000 +++ b/ship_gui.c Sun Jan 23 13:08:01 2005 +0000 @@ -868,9 +868,8 @@ int sel, i = 0; sel = v->cur_order_index; - order = v->orders; - while (order != NULL) { + FOR_VEHICLE_ORDERS(v, order) { if (sel == 0) { _stringwidth_base = 0xE0; DoDrawString( "\xAF", x-6, y, 16); @@ -888,8 +887,6 @@ break; } } - - order = order->next; } }