summaryrefslogtreecommitdiff
path: root/src/industry_gui.cpp
diff options
context:
space:
mode:
authorTechGeekNZ <git@tech.geek.nz>2020-06-29 13:38:29 +1200
committerCharles Pigott <charlespigott@googlemail.com>2020-07-27 17:31:29 +0100
commita10013dd00ee0e78bba7804feddc81d84ba57d69 (patch)
tree8875568d7e0e1dff52916558f93462badb585295 /src/industry_gui.cpp
parent7d66540af55fe9c28790cfe9d839bfbf8afb91dc (diff)
downloadopenttd-a10013dd00ee0e78bba7804feddc81d84ba57d69.tar.xz
Codechange: Spell 'Viewport' consistently
Some places in the codebase misspell 'Viewport' as 'ViewPort' or 'view_port'. This patch makes everything consistent.
Diffstat (limited to 'src/industry_gui.cpp')
-rw-r--r--src/industry_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp
index 88cbc91d1..87fa97d3b 100644
--- a/src/industry_gui.cpp
+++ b/src/industry_gui.cpp
@@ -1016,7 +1016,7 @@ public:
case WID_IV_GOTO: {
Industry *i = Industry::Get(this->window_number);
if (_ctrl_pressed) {
- ShowExtraViewPortWindow(i->location.GetCenterTile());
+ ShowExtraViewportWindow(i->location.GetCenterTile());
} else {
ScrollMainWindowToTile(i->location.GetCenterTile());
}
@@ -1627,7 +1627,7 @@ public:
uint p = this->vscroll->GetScrolledRowFromWidget(pt.y, this, WID_ID_INDUSTRY_LIST, WD_FRAMERECT_TOP);
if (p < this->industries.size()) {
if (_ctrl_pressed) {
- ShowExtraViewPortWindow(this->industries[p]->location.tile);
+ ShowExtraViewportWindow(this->industries[p]->location.tile);
} else {
ScrollMainWindowToTile(this->industries[p]->location.tile);
}