summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-01-23 13:08:01 +0000
committertruelight <truelight@openttd.org>2005-01-23 13:08:01 +0000
commit80131e1e4a75516145d84a10e99b596a6e85a908 (patch)
treea9dadd7356d78b9f5d6a206e29cf683e00e6fa67
parenta11eddd04b965bee0148b9009ce3ba9f27edc92d (diff)
downloadopenttd-80131e1e4a75516145d84a10e99b596a6e85a908.tar.xz
(svn r1609) -Codechange: converted the last order-loop with FOR_VEHICLE_ORDERS
-rw-r--r--ship_gui.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ship_gui.c b/ship_gui.c
index 829a6ccf3..6966a7095 100644
--- a/ship_gui.c
+++ b/ship_gui.c
@@ -868,9 +868,8 @@ static void DrawSmallOrderList(Vehicle *v, int x, int y) {
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 @@ static void DrawSmallOrderList(Vehicle *v, int x, int y) {
break;
}
}
-
- order = order->next;
}
}