File diff r9002:4068af463db3 → r9003:0b0148ae8377
src/economy.cpp
Show inline comments
 
@@ -23,12 +23,13 @@
 
#include "aircraft.h"
 
#include "newgrf_engine.h"
 
#include "newgrf_sound.h"
 
#include "newgrf_callbacks.h"
 
#include "newgrf_industries.h"
 
#include "newgrf_industrytiles.h"
 
#include "newgrf_station.h"
 
#include "unmovable.h"
 
#include "cargotype.h"
 
#include "player_face.h"
 
#include "group.h"
 
#include "strings_func.h"
 
#include "tile_cmd.h"
 
@@ -1688,12 +1689,14 @@ static void LoadUnloadVehicle(Vehicle *v
 

	
 
			ge->cargo.MoveTo(&v->cargo, cap, CargoList::MTA_CARGO_LOAD, st->xy);
 

	
 
			st->time_since_load = 0;
 
			st->last_vehicle_type = v->type;
 

	
 
			StationAnimationTrigger(st, st->xy, STAT_ANIM_CARGO_TAKEN, v->cargo_type);
 

	
 
			unloading_time += cap;
 

	
 
			result |= 2;
 
		}
 

	
 
		if (v->cargo.Count() == v->cargo_cap) {