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/industry_gui.cpp | |
parent | 814f153b5a98e0030cbd221e6a89e083ce62bb1d (diff) | |
download | openttd-6221d74644922ea4bbba3ed9cd8bbec42398f77b.tar.xz |
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
Diffstat (limited to 'src/industry_gui.cpp')
-rw-r--r-- | src/industry_gui.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp index 194770d76..3c51b996a 100644 --- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -485,13 +485,13 @@ public: this->editbox_line = 0; this->clicked_line = 0; this->clicked_button = 0; - InitializeWindowViewport(this, 3, 17, 254, 86, GetIndustry(window_number)->xy + TileDiffXY(1, 1), ZOOM_LVL_INDUSTRY); + InitializeWindowViewport(this, 3, 17, 254, 86, Industry::Get(window_number)->xy + TileDiffXY(1, 1), ZOOM_LVL_INDUSTRY); this->FindWindowPlacementAndResize(desc); } virtual void OnPaint() { - Industry *i = GetIndustry(this->window_number); + Industry *i = Industry::Get(this->window_number); const IndustrySpec *ind = GetIndustrySpec(i->type); int y = this->widget[IVW_INFO].top + 1; bool first = true; @@ -594,7 +594,7 @@ public: case IVW_INFO: { int line, x; - i = GetIndustry(this->window_number); + i = Industry::Get(this->window_number); /* We should work if needed.. */ if (!IsProductionAlterable(i)) return; @@ -628,7 +628,7 @@ public: } break; case IVW_GOTO: - i = GetIndustry(this->window_number); + i = Industry::Get(this->window_number); if (_ctrl_pressed) { ShowExtraViewPortWindow(i->xy + TileDiffXY(1, 1)); } else { @@ -660,7 +660,7 @@ public: { if (StrEmpty(str)) return; - Industry *i = GetIndustry(this->window_number); + Industry *i = Industry::Get(this->window_number); int line = this->editbox_line; i->production_rate[line] = ClampU(atoi(str), 0, 255); |