Changeset - r23608:a351d794c5b8
[Not reviewed]
master
0 1 0
SamuXarick - 5 years ago 2019-04-11 06:35:46
43006711+SamuXarick@users.noreply.github.com
Fix 50e08f333a: Creating a cargo subsidy with town as source did not consider min population. (#7493)
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/subsidy.cpp
Show inline comments
 
@@ -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;
 

	
0 comments (0 inline, 0 general)