src/aircraft_cmd.cpp
branchnoai
changeset 9703 d2a6acdbd665
parent 9701 d1ac22c62f64
child 9704 197cb8c6ae17
equal deleted inserted replaced
9702:e782b59f1f6a 9703:d2a6acdbd665
   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 		}