File diff r5997:b5a74d8a12b8 → r5998:69c1cce26321
src/economy.cpp
Show inline comments
 
@@ -1519,7 +1519,7 @@ int LoadUnloadVehicle(Vehicle *v, bool j
 

	
 
	if (v->type == VEH_Train) {
 
		// Each platform tile is worth 2 rail vehicles.
 
		int overhang = v->u.rail.cached_total_length - GetStationPlatforms(st, v->tile) * TILE_SIZE;
 
		int overhang = v->u.rail.cached_total_length - st->GetPlatformLength(v->tile) * TILE_SIZE;
 
		if (overhang > 0) {
 
			unloading_time <<= 1;
 
			unloading_time += (overhang * unloading_time) / 8;