src/roadveh_cmd.cpp
changeset 8428 f8300c908bd9
parent 8427 143b0be22af1
child 8450 dce58137301f
equal deleted inserted replaced
8427:143b0be22af1 8428:f8300c908bd9
   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