diff options
author | yexo <yexo@openttd.org> | 2011-09-11 11:47:18 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2011-09-11 11:47:18 +0000 |
commit | 40d5419cd209cd84e2ff28a0585bc4ec44688981 (patch) | |
tree | 8e6481ace71e161a28ac8148fff330b00f9aa6f4 /src/subsidy.cpp | |
parent | 07077dc56ea335a8521bfb1953b5a883bd1d507d (diff) | |
download | openttd-40d5419cd209cd84e2ff28a0585bc4ec44688981.tar.xz |
(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
Diffstat (limited to 'src/subsidy.cpp')
-rw-r--r-- | src/subsidy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/subsidy.cpp b/src/subsidy.cpp index d4e701298..04573daa0 100644 --- a/src/subsidy.cpp +++ b/src/subsidy.cpp @@ -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; } |