summaryrefslogtreecommitdiff
path: root/src/newgrf_town.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2011-09-11 11:47:18 +0000
committeryexo <yexo@openttd.org>2011-09-11 11:47:18 +0000
commit40d5419cd209cd84e2ff28a0585bc4ec44688981 (patch)
tree8e6481ace71e161a28ac8148fff330b00f9aa6f4 /src/newgrf_town.cpp
parent07077dc56ea335a8521bfb1953b5a883bd1d507d (diff)
downloadopenttd-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/newgrf_town.cpp')
-rw-r--r--src/newgrf_town.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_town.cpp b/src/newgrf_town.cpp
index 5f379766b..5fa180444 100644
--- a/src/newgrf_town.cpp
+++ b/src/newgrf_town.cpp
@@ -107,8 +107,8 @@ uint32 TownGetVariable(byte variable, byte parameter, bool *available, Town *t,
case 0xC7: return GB(ClampToU16(t->act_pass), 8, 8);
case 0xC8: return ClampToU16(t->act_mail);
case 0xC9: return GB(ClampToU16(t->act_mail), 8, 8);
- case 0xCA: return t->pct_pass_transported;
- case 0xCB: return t->pct_mail_transported;
+ case 0xCA: return t->GetPercentPassTransported();
+ case 0xCB: return t->GetPercentMailTransported();
case 0xCC: return t->new_act_food;
case 0xCD: return GB(t->new_act_food, 8, 8);
case 0xCE: return t->new_act_water;