diff options
author | smatz <smatz@openttd.org> | 2009-05-16 23:34:14 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-05-16 23:34:14 +0000 |
commit | 6221d74644922ea4bbba3ed9cd8bbec42398f77b (patch) | |
tree | 0069bbd6bb7525754c5d9353132f5dc64a0996cc /src/subsidy_gui.cpp | |
parent | 814f153b5a98e0030cbd221e6a89e083ce62bb1d (diff) | |
download | openttd-6221d74644922ea4bbba3ed9cd8bbec42398f77b.tar.xz |
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
Diffstat (limited to 'src/subsidy_gui.cpp')
-rw-r--r-- | src/subsidy_gui.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/subsidy_gui.cpp b/src/subsidy_gui.cpp index 298592522..8d666fca1 100644 --- a/src/subsidy_gui.cpp +++ b/src/subsidy_gui.cpp @@ -80,11 +80,11 @@ struct SubsidyListWindow : Window { /* determine from coordinate for subsidy and try to scroll to it */ uint offs = s->from; if (s->age >= 12) { - xy = GetStation(offs)->xy; + xy = Station::Get(offs)->xy; } else if (te == TE_PASSENGERS || te == TE_MAIL) { - xy = GetTown(offs)->xy; + xy = Town::Get(offs)->xy; } else { - xy = GetIndustry(offs)->xy; + xy = Industry::Get(offs)->xy; } if (_ctrl_pressed || !ScrollMainWindowToTile(xy)) { @@ -93,11 +93,11 @@ struct SubsidyListWindow : Window { /* otherwise determine to coordinate for subsidy and scroll to it */ offs = s->to; if (s->age >= 12) { - xy = GetStation(offs)->xy; + xy = Station::Get(offs)->xy; } else if (te == TE_PASSENGERS || te == TE_MAIL || te == TE_GOODS || te == TE_FOOD) { - xy = GetTown(offs)->xy; + xy = Town::Get(offs)->xy; } else { - xy = GetIndustry(offs)->xy; + xy = Industry::Get(offs)->xy; } if (_ctrl_pressed) { @@ -151,7 +151,7 @@ struct SubsidyListWindow : Window { for (s = _subsidies; s != endof(_subsidies); s++) { if (s->cargo_type != CT_INVALID && s->age >= 12) { SetupSubsidyDecodeParam(s, 1); - SetDParam(3, GetStation(s->to)->owner); + SetDParam(3, Station::Get(s->to)->owner); SetDParam(4, _date - ymd.day + 768 - s->age * 32); /* Displays the two connected stations */ |