equal
deleted
inserted
replaced
480 /* We called with a different DEPOT_SERVICE setting. |
480 /* We called with a different DEPOT_SERVICE setting. |
481 * Now we change the setting to apply the new one and let the vehicle head for the same depot. |
481 * Now we change the setting to apply the new one and let the vehicle head for the same depot. |
482 * Note: the if is (true for requesting service == true for ordered to stop in depot) */ |
482 * Note: the if is (true for requesting service == true for ordered to stop in depot) */ |
483 if (flags & DC_EXEC) { |
483 if (flags & DC_EXEC) { |
484 ClrBit(v->current_order.flags, OFB_PART_OF_ORDERS); |
484 ClrBit(v->current_order.flags, OFB_PART_OF_ORDERS); |
485 TOGGLEBIT(v->current_order.flags, OFB_HALT_IN_DEPOT); |
485 ToggleBit(v->current_order.flags, OFB_HALT_IN_DEPOT); |
486 InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, STATUS_BAR); |
486 InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, STATUS_BAR); |
487 } |
487 } |
488 return CommandCost(); |
488 return CommandCost(); |
489 } |
489 } |
490 |
490 |