(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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user