mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-26 16:09:10 +00:00
Fix 50e08f333a
: Creating a cargo subsidy with town as source did not consider min population. (#7493)
This commit is contained in:
committed by
Charles Pigott
parent
b1c31f9500
commit
4750d2836c
@@ -333,6 +333,7 @@ bool FindSubsidyTownCargoRoute()
|
||||
|
||||
/* Select a random town. */
|
||||
const Town *src_town = Town::GetRandom();
|
||||
if (src_town->cache.population < SUBSIDY_CARGO_MIN_POPULATION) return false;
|
||||
|
||||
CargoTypes town_cargo_produced = src_town->cargo_produced;
|
||||
|
||||
|
Reference in New Issue
Block a user