src/ship_cmd.cpp
changeset 7932 6c3d71e8a129
parent 7931 b0a46cd92225
child 8045 4fd4eb3f265a
equal deleted inserted replaced
7931:b0a46cd92225 7932:6c3d71e8a129
  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