equal
deleted
inserted
replaced
1008 /* We called with a different DEPOT_SERVICE setting. |
1008 /* We called with a different DEPOT_SERVICE setting. |
1009 * Now we change the setting to apply the new one and let the vehicle head for the same depot. |
1009 * Now we change the setting to apply the new one and let the vehicle head for the same depot. |
1010 * Note: the if is (true for requesting service == true for ordered to stop in depot) */ |
1010 * Note: the if is (true for requesting service == true for ordered to stop in depot) */ |
1011 if (flags & DC_EXEC) { |
1011 if (flags & DC_EXEC) { |
1012 ClrBit(v->current_order.flags, OFB_PART_OF_ORDERS); |
1012 ClrBit(v->current_order.flags, OFB_PART_OF_ORDERS); |
1013 TOGGLEBIT(v->current_order.flags, OFB_HALT_IN_DEPOT); |
1013 ToggleBit(v->current_order.flags, OFB_HALT_IN_DEPOT); |
1014 InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, STATUS_BAR); |
1014 InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, STATUS_BAR); |
1015 } |
1015 } |
1016 return CommandCost(); |
1016 return CommandCost(); |
1017 } |
1017 } |
1018 |
1018 |