918 WP(w,traindepot_d).sel = INVALID_VEHICLE; |
918 WP(w,traindepot_d).sel = INVALID_VEHICLE; |
919 _backup_orders_tile = 0; |
919 _backup_orders_tile = 0; |
920 } |
920 } |
921 } |
921 } |
922 |
922 |
923 static void DrawSmallSchedule(Vehicle *v, int x, int y) { |
923 static void DrawSmallOrderList(Vehicle *v, int x, int y) { |
924 const Order *sched; |
924 const Order *order; |
925 int sel; |
925 int sel, i = 0; |
926 Order ord; |
926 |
927 int i = 0; |
|
928 |
|
929 sched = v->schedule_ptr; |
|
930 sel = v->cur_order_index; |
927 sel = v->cur_order_index; |
931 |
928 |
932 while ((ord = *sched++).type != OT_NOTHING) { |
929 FOR_VEHICLE_ORDERS(v, order) { |
933 if (sel == 0) { |
930 if (sel == 0) { |
934 _stringwidth_base = 0xE0; |
931 _stringwidth_base = 0xE0; |
935 DoDrawString( "\xAF", x-6, y, 16); |
932 DoDrawString( "\xAF", x-6, y, 16); |
936 _stringwidth_base = 0; |
933 _stringwidth_base = 0; |
937 } |
934 } |
938 sel--; |
935 sel--; |
939 |
936 |
940 if (ord.type == OT_GOTO_STATION) { |
937 if (order->type == OT_GOTO_STATION) { |
941 SetDParam(0, ord.station); |
938 SetDParam(0, order->station); |
942 DrawString(x, y, STR_A036, 0); |
939 DrawString(x, y, STR_A036, 0); |
943 |
940 |
944 y += 6; |
941 y += 6; |
945 if (++i == 4) |
942 if (++i == 4) |
946 break; |
943 break; |
1050 if (v->string_id != STR_SV_AIRCRAFT_NAME) { |
1047 if (v->string_id != STR_SV_AIRCRAFT_NAME) { |
1051 SetDParam(0, v->string_id); |
1048 SetDParam(0, v->string_id); |
1052 DrawString(x + 19, y, STR_01AB, 0); |
1049 DrawString(x + 19, y, STR_01AB, 0); |
1053 } |
1050 } |
1054 |
1051 |
1055 DrawSmallSchedule(v, x + 136, y); |
1052 DrawSmallOrderList(v, x + 136, y); |
1056 |
1053 |
1057 y += PLY_WND_PRC__SIZE_OF_ROW_BIG; |
1054 y += PLY_WND_PRC__SIZE_OF_ROW_BIG; |
1058 } |
1055 } |
1059 } break; |
1056 } break; |
1060 |
1057 |