File diff r8130:bece2e5c7460 → r8131:7a50db7be0ff
src/autoreplace_cmd.cpp
Show inline comments
 
/* $Id$ */
 

	
 
#include "stdafx.h"
 
#include "openttd.h"
 
#include "roadveh.h"
 
#include "ship.h"
 
#include "table/strings.h"
 
#include "functions.h"
 
#include "news.h"
 
#include "player.h"
 
#include "engine.h"
 
#include "debug.h"
 
#include "vehicle_gui.h"
 
#include "depot.h"
 
#include "train.h"
 
#include "aircraft.h"
 
#include "cargotype.h"
 
#include "group.h"
 
#include "order.h"
 
#include "strings_func.h"
 
#include "command_func.h"
 
#include "functions.h"
 

	
 
/*
 
 * move the cargo from one engine to another if possible
 
 */
 
static void MoveVehicleCargo(Vehicle *dest, Vehicle *source)
 
{
 
	Vehicle *v = dest;
 

	
 
	do {
 
		do {
 
			if (source->cargo_type != dest->cargo_type)
 
				continue; // cargo not compatible