Fix: base cargo payment on load/unload tile, instead of station sign location (#11281)

This commit is contained in:
Patric Stout
2023-09-13 16:41:09 +02:00
committed by GitHub
parent ba67f39db6
commit 9c49a61249
7 changed files with 79 additions and 45 deletions

View File

@@ -4039,7 +4039,7 @@ static uint UpdateStationWaiting(Station *st, CargoID type, uint amount, SourceT
if (amount == 0) return 0;
StationID next = ge.GetVia(st->index);
ge.cargo.Append(new CargoPacket(st->index, st->xy, amount, source_type, source_id), next);
ge.cargo.Append(new CargoPacket(st->index, amount, source_type, source_id), next);
LinkGraph *lg = nullptr;
if (ge.link_graph == INVALID_LINK_GRAPH) {
if (LinkGraph::CanAllocateItem()) {