Reduce strength of station rating source station penalty on truncation
This commit is contained in:
@@ -4119,7 +4119,9 @@ static void TruncateCargo(const CargoSpec *cs, GoodsEntry *ge, uint amount = UIN
|
|||||||
if (source_station == nullptr) continue;
|
if (source_station == nullptr) continue;
|
||||||
|
|
||||||
GoodsEntry &source_ge = source_station->goods[cs->Index()];
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user