equal
deleted
inserted
replaced
915 |
915 |
916 FOR_VEHICLE_ORDERS(v, order) { |
916 FOR_VEHICLE_ORDERS(v, order) { |
917 if (sel == 0) DrawString(x - 6, y, STR_SMALL_RIGHT_ARROW, TC_BLACK); |
917 if (sel == 0) DrawString(x - 6, y, STR_SMALL_RIGHT_ARROW, TC_BLACK); |
918 sel--; |
918 sel--; |
919 |
919 |
920 if (order->type == OT_GOTO_STATION) { |
920 if (order->IsType(OT_GOTO_STATION)) { |
921 if (v->type == VEH_SHIP && GetStation(order->dest)->IsBuoy()) continue; |
921 if (v->type == VEH_SHIP && GetStation(order->dest)->IsBuoy()) continue; |
922 |
922 |
923 SetDParam(0, order->dest); |
923 SetDParam(0, order->dest); |
924 DrawString(x, y, STR_A036, TC_FROMSTRING); |
924 DrawString(x, y, STR_A036, TC_FROMSTRING); |
925 |
925 |
1950 } |
1950 } |
1951 } else { // no train |
1951 } else { // no train |
1952 str = STR_8861_STOPPED; |
1952 str = STR_8861_STOPPED; |
1953 } |
1953 } |
1954 } else { // vehicle is in a "normal" state, show current order |
1954 } else { // vehicle is in a "normal" state, show current order |
1955 switch (v->current_order.type) { |
1955 switch (v->current_order.GetType()) { |
1956 case OT_GOTO_STATION: { |
1956 case OT_GOTO_STATION: { |
1957 SetDParam(0, v->current_order.dest); |
1957 SetDParam(0, v->current_order.dest); |
1958 SetDParam(1, v->GetDisplaySpeed()); |
1958 SetDParam(1, v->GetDisplaySpeed()); |
1959 str = STR_HEADING_FOR_STATION + _patches.vehicle_speed; |
1959 str = STR_HEADING_FOR_STATION + _patches.vehicle_speed; |
1960 } break; |
1960 } break; |