equal
deleted
inserted
replaced
567 if (!!(p2 & DEPOT_SERVICE) == HASBIT(v->current_order.flags, OFB_HALT_IN_DEPOT)) { |
567 if (!!(p2 & DEPOT_SERVICE) == HASBIT(v->current_order.flags, OFB_HALT_IN_DEPOT)) { |
568 /* We called with a different DEPOT_SERVICE setting. |
568 /* We called with a different DEPOT_SERVICE setting. |
569 * Now we change the setting to apply the new one and let the vehicle head for the same hangar. |
569 * Now we change the setting to apply the new one and let the vehicle head for the same hangar. |
570 * Note: the if is (true for requesting service == true for ordered to stop in hangar) */ |
570 * Note: the if is (true for requesting service == true for ordered to stop in hangar) */ |
571 if (flags & DC_EXEC) { |
571 if (flags & DC_EXEC) { |
|
572 CLRBIT(v->current_order.flags, OFB_PART_OF_ORDERS); |
572 TOGGLEBIT(v->current_order.flags, OFB_HALT_IN_DEPOT); |
573 TOGGLEBIT(v->current_order.flags, OFB_HALT_IN_DEPOT); |
573 InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, STATUS_BAR); |
574 InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, STATUS_BAR); |
574 } |
575 } |
575 return CommandCost(); |
576 return CommandCost(); |
576 } |
577 } |