File diff r12076:cdb45179e7bc → r12077:baf868e4baf0
src/order_cmd.cpp
Show inline comments
 
@@ -1199,13 +1199,13 @@ CommandCost CmdOrderRefit(TileIndex tile
 

	
 
		for (Vehicle *u = v->FirstShared(); u != NULL; u = u->NextShared()) {
 
			/* Update any possible open window of the vehicle */
 
			InvalidateVehicleOrder(u, 0);
 

	
 
			/* If the vehicle already got the current depot set as current order, then update current order as well */
 
			if (u->cur_order_index == order_number && u->current_order.GetDepotOrderType() & ODTFB_PART_OF_ORDERS) {
 
			if (u->cur_order_index == order_number && (u->current_order.GetDepotOrderType() & ODTFB_PART_OF_ORDERS)) {
 
				u->current_order.SetRefit(cargo, subtype);
 
			}
 
		}
 
	}
 

	
 
	return CommandCost();
 
@@ -1376,13 +1376,13 @@ void CheckOrders(const Vehicle *v)
 
	if (_settings_client.gui.order_review_system == 0) return;
 

	
 
	/* Do nothing for crashed vehicles */
 
	if (v->vehstatus & VS_CRASHED) return;
 

	
 
	/* Do nothing for stopped vehicles if setting is '1' */
 
	if (_settings_client.gui.order_review_system == 1 && v->vehstatus & VS_STOPPED)
 
	if (_settings_client.gui.order_review_system == 1 && (v->vehstatus & VS_STOPPED))
 
		return;
 

	
 
	/* do nothing we we're not the first vehicle in a share-chain */
 
	if (v->FirstShared() != v) return;
 

	
 
	/* Only check every 20 days, so that we don't flood the message log */