From 9e1066049f49fd3e82aef8b22c463c3f72087a3d Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Mon, 15 May 2023 19:38:02 +0100 Subject: [PATCH] Reduce strength of station rating source station penalty on truncation --- src/station_cmd.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index f6575b9e94..8263822c73 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -4119,7 +4119,9 @@ static void TruncateCargo(const CargoSpec *cs, GoodsEntry *ge, uint amount = UIN if (source_station == nullptr) continue; GoodsEntry &source_ge = source_station->goods[cs->Index()]; - source_ge.max_waiting_cargo = std::max(source_ge.max_waiting_cargo, i->second); + if (i->second > source_ge.max_waiting_cargo) { + source_ge.max_waiting_cargo += (i->second - source_ge.max_waiting_cargo) / 4; + } } }