Codechange: remove loaded_at_xy from CargoPacket as it was unused (#11276)
(cherry picked from commit b0e73277d6
)
This commit is contained in:

committed by
Jonathan G Rennison

parent
186a082613
commit
2890127675
@@ -1751,7 +1751,7 @@ struct FinalizeRefitAction
|
||||
{
|
||||
if (this->do_reserve || (cargo_type_loading == nullptr || (cargo_type_loading->current_order.GetCargoLoadTypeRaw(v->cargo_type) & OLFB_FULL_LOAD))) {
|
||||
this->st->goods[v->cargo_type].CreateData().cargo.Reserve(v->cargo_cap - v->cargo.RemainingCount(),
|
||||
&v->cargo, st->xy, this->next_station.Get(v->cargo_type));
|
||||
&v->cargo, this->next_station.Get(v->cargo_type));
|
||||
}
|
||||
this->consist_capleft[v->cargo_type] += v->cargo_cap - v->cargo.RemainingCount();
|
||||
return true;
|
||||
@@ -1856,7 +1856,7 @@ struct ReserveCargoAction {
|
||||
}
|
||||
if (v->cargo_cap > v->cargo.RemainingCount() && MayLoadUnderExclusiveRights(st, v)) {
|
||||
st->goods[v->cargo_type].CreateData().cargo.Reserve(v->cargo_cap - v->cargo.RemainingCount(),
|
||||
&v->cargo, st->xy, next_station.Get(v->cargo_type));
|
||||
&v->cargo, next_station.Get(v->cargo_type));
|
||||
}
|
||||
|
||||
return true;
|
||||
@@ -2196,7 +2196,7 @@ static void LoadUnloadVehicle(Vehicle *front)
|
||||
if (v->cargo.StoredCount() == 0) TriggerVehicle(v, VEHICLE_TRIGGER_NEW_CARGO);
|
||||
if (_settings_game.order.gradual_loading) cap_left = std::min(cap_left, GetLoadAmount(v));
|
||||
|
||||
uint loaded = ged->cargo.Load(cap_left, &v->cargo, st->xy, next_station.Get(v->cargo_type));
|
||||
uint loaded = ged->cargo.Load(cap_left, &v->cargo, next_station.Get(v->cargo_type));
|
||||
if (v->cargo.ActionCount(VehicleCargoList::MTA_LOAD) > 0) {
|
||||
/* Remember if there are reservations left so that we don't stop
|
||||
* loading before they're loaded. */
|
||||
|
Reference in New Issue
Block a user