(svn r22920) -Cleanup: replace two very old town variables taht were rarely used by small functions that compute there value on-the-fly when necessary

This commit is contained in:
yexo
2011-09-11 11:47:18 +00:00
parent dff9faa3f4
commit 72500ddedf
7 changed files with 12 additions and 18 deletions

View File

@@ -170,7 +170,7 @@ static Subsidy *FindSubsidyPassengerRoute()
const Town *src = Town::GetRandom();
if (src->population < SUBSIDY_PAX_MIN_POPULATION ||
src->pct_pass_transported > SUBSIDY_MAX_PCT_TRANSPORTED) {
src->GetPercentPassTransported() > SUBSIDY_MAX_PCT_TRANSPORTED) {
return NULL;
}