summaryrefslogtreecommitdiff
path: root/src/company_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-02-09 02:33:10 +0000
committerrubidium <rubidium@openttd.org>2009-02-09 02:33:10 +0000
commit90e2465d7d2c770707feeaebfebbe56bd76383f1 (patch)
treeaa639d9f07d77989dca1ce7b2cf1a57a95a43c69 /src/company_gui.cpp
parent030f52e998b176087de5ad5f6b5c47a7e348bf16 (diff)
downloadopenttd-90e2465d7d2c770707feeaebfebbe56bd76383f1.tar.xz
(svn r15427) -Codechange: give w->caption_color a more sensible name as it holds the owner of whatever is shown in the window
Diffstat (limited to 'src/company_gui.cpp')
-rw-r--r--src/company_gui.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/company_gui.cpp b/src/company_gui.cpp
index 26a0485a6..97c65776e 100644
--- a/src/company_gui.cpp
+++ b/src/company_gui.cpp
@@ -228,7 +228,7 @@ struct CompanyFinancesWindow : Window {
Window(desc, company),
small(show_small)
{
- this->caption_color = this->window_number;
+ this->owner = (Owner)this->window_number;
if (show_stickied) this->flags4 |= WF_STICKY;
@@ -458,7 +458,7 @@ private:
public:
SelectCompanyLiveryWindow(const WindowDesc *desc, CompanyID company) : Window(desc, company)
{
- this->caption_color = company;
+ this->owner = company;
this->livery_class = LC_OTHER;
this->sel = 1;
this->LowerWidget(SCLW_WIDGET_CLASS_GENERAL);
@@ -848,7 +848,7 @@ public:
SelectCompanyManagerFaceWindow(const WindowDesc *desc, Window *parent, bool advanced, int top, int left) : Window(desc, parent->window_number)
{
this->parent = parent;
- this->caption_color = this->window_number;
+ this->owner = (Owner)this->window_number;
this->face = GetCompany((CompanyID)this->window_number)->face;
this->advanced = advanced;
@@ -1254,7 +1254,7 @@ struct CompanyWindow : Window
CompanyWindow(const WindowDesc *desc, WindowNumber window_number) : Window(desc, window_number)
{
- this->caption_color = this->window_number;
+ this->owner = (Owner)this->window_number;
this->FindWindowPlacementAndResize(desc);
}